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 806 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 808 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 813 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 811 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 815 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 812 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 810 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 814 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 809 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 819 of file xutils.hpp.


The documentation for this struct was generated from the following file: