|
CFx SDK Documentation 2024 SP0
|
#include <OdMemory.h>
Public Types | |
| using | allocator_type = std::allocator< T > |
| using | size_type = typename std::allocator_traits< allocator_type >::size_type |
| using | difference_type = typename std::allocator_traits< allocator_type >::difference_type |
| using | pointer = typename std::allocator_traits< allocator_type >::pointer |
| using | const_pointer = typename std::allocator_traits< allocator_type >::const_pointer |
| using | value_type = typename std::allocator_traits< allocator_type >::value_type |
| using | reference = value_type & |
| using | const_reference = const value_type & |
Public Member Functions | |
| pointer | allocate (size_type N, const void *=0) |
| pointer | allocate (size_type N, const_pointer=0) |
| DOM For CodeWarrior. | |
| void | deallocate (void *P, size_type=0) |
This template class extends the functionality of the standard STL class std::allocator for those compilers that not support for construct and destroy.
<group Other_Classes>
Definition at line 51 of file OdMemory.h.
| using OdAllocator< T >::allocator_type = std::allocator<T> |
Definition at line 55 of file OdMemory.h.
| using OdAllocator< T >::const_pointer = typename std::allocator_traits<allocator_type>::const_pointer |
Definition at line 59 of file OdMemory.h.
| using OdAllocator< T >::const_reference = const value_type& |
Definition at line 62 of file OdMemory.h.
| using OdAllocator< T >::difference_type = typename std::allocator_traits<allocator_type>::difference_type |
Definition at line 57 of file OdMemory.h.
| using OdAllocator< T >::pointer = typename std::allocator_traits<allocator_type>::pointer |
Definition at line 58 of file OdMemory.h.
| using OdAllocator< T >::reference = value_type& |
Definition at line 61 of file OdMemory.h.
| using OdAllocator< T >::size_type = typename std::allocator_traits<allocator_type>::size_type |
Definition at line 56 of file OdMemory.h.
| using OdAllocator< T >::value_type = typename std::allocator_traits<allocator_type>::value_type |
Definition at line 60 of file OdMemory.h.
|
inline |
Allocates a block of memory sufficient to store the specified number of elements.
| N | [in] Number of elements. |
Definition at line 80 of file OdMemory.h.
|
inline |
DOM For CodeWarrior.
Definition at line 93 of file OdMemory.h.
|
inline |
Frees a block of memory allocated with allocate.
| P | [in] Pointer to the memory. |
Definition at line 132 of file OdMemory.h.