iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages

#include <nrt/Core/Memory/Allocation.H>

template<class T>
class nrt::Allocator< T >

A C++ STL compatible allocator using nrt::allocate.

This allocator will use the same strategy that nrt::allocate has been compiled to use.

Template Parameters
TThe data type to allocate

Definition at line 99 of file Allocation.H.

Inheritance diagram for nrt::Allocator< T >:

Public Types

typedef std::allocator< T >
::size_type 
size_type
 
typedef std::allocator< T >
::difference_type 
difference_type
 
typedef std::allocator< T >
::pointer 
pointer
 
typedef std::allocator< T >
::const_pointer 
const_pointer
 
typedef std::allocator< T >
::reference 
reference
 
typedef std::allocator< T >
::const_reference 
const_reference
 
typedef std::allocator< T >
::value_type 
value_type
 

Public Member Functions

 Allocator (Allocator const &other) noexcept
 
template<class U >
 Allocator (Allocator< U > const &other) noexcept
 
pointer allocate (size_type n, const void *=0)
 
void deallocate (pointer p, size_type)
 

Additional Inherited Members

- Public Attributes inherited from std::allocator< T >
elements
 STL member.
 

The documentation for this class was generated from the following files: