xtensor
Loading...
Searching...
No Matches
xt::tracking_allocator< T, A, P > Struct Template Reference
Inheritance diagram for xt::tracking_allocator< T, A, P >:

Classes

struct  rebind

Public Types

using base_type = A
using value_type = typename A::value_type
using reference = value_type&
using const_reference = const value_type&
using pointer = typename std::allocator_traits<A>::pointer
using const_pointer = typename std::allocator_traits<A>::const_pointer
using size_type = typename std::allocator_traits<A>::size_type
using difference_type = typename std::allocator_traits<A>::difference_type

Public Member Functions

T * allocate (std::size_t n)

Detailed Description

template<class T, class A, alloc_tracking::policy P>
struct xt::tracking_allocator< T, A, P >

Definition at line 615 of file xutils.hpp.

Member Typedef Documentation

◆ base_type

template<class T, class A, alloc_tracking::policy P>
using xt::tracking_allocator< T, A, P >::base_type = A

Definition at line 617 of file xutils.hpp.

◆ const_pointer

template<class T, class A, alloc_tracking::policy P>
using xt::tracking_allocator< T, A, P >::const_pointer = typename std::allocator_traits<A>::const_pointer

Definition at line 622 of file xutils.hpp.

◆ const_reference

template<class T, class A, alloc_tracking::policy P>
using xt::tracking_allocator< T, A, P >::const_reference = const value_type&

Definition at line 620 of file xutils.hpp.

◆ difference_type

template<class T, class A, alloc_tracking::policy P>
using xt::tracking_allocator< T, A, P >::difference_type = typename std::allocator_traits<A>::difference_type

Definition at line 624 of file xutils.hpp.

◆ pointer

template<class T, class A, alloc_tracking::policy P>
using xt::tracking_allocator< T, A, P >::pointer = typename std::allocator_traits<A>::pointer

Definition at line 621 of file xutils.hpp.

◆ reference

template<class T, class A, alloc_tracking::policy P>
using xt::tracking_allocator< T, A, P >::reference = value_type&

Definition at line 619 of file xutils.hpp.

◆ size_type

template<class T, class A, alloc_tracking::policy P>
using xt::tracking_allocator< T, A, P >::size_type = typename std::allocator_traits<A>::size_type

Definition at line 623 of file xutils.hpp.

◆ value_type

template<class T, class A, alloc_tracking::policy P>
using xt::tracking_allocator< T, A, P >::value_type = typename A::value_type

Definition at line 618 of file xutils.hpp.

Member Function Documentation

◆ allocate()

template<class T, class A, alloc_tracking::policy P>
T * xt::tracking_allocator< T, A, P >::allocate ( std::size_t n)
inline

Definition at line 628 of file xutils.hpp.


The documentation for this struct was generated from the following file:
  • /home/runner/work/xtensor/xtensor/include/xtensor/utils/xutils.hpp