utilities
0.0
|
#include <memory.h>
Classes | |
struct | rebind |
Public Types | |
typedef T | value_type |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
typedef value_type & | reference |
typedef const value_type & | const_reference |
typedef std::size_t | size_type |
typedef std::ptrdiff_t | difference_type |
Public Member Functions | |
pointer | address (reference r) |
const_pointer | address (const_reference r) const |
pointer | allocate (size_type cnt, typename std::allocator< void >::const_pointer=nullptr) |
void | deallocate (pointer p, size_type) |
size_type | max_size () const |
template<typename U > | |
void | construct (U *ptr) noexcept(std::is_nothrow_default_constructible< U >::value) |
template<typename U , typename... Args> | |
void | construct (U *ptr, Args &&... args) |
bool | operator== (allocator_ const &) |
bool | operator!= (allocator_ const &a) |
An allocator suitable for use with STL, that monitors usage If the symbol MOLPRO_MEMORY_FORTRAN is defined, allocation is outsourced to the fortran memory allocator, otherwise it is done with malloc().
typedef const value_type* molpro::allocator_< T, A >::const_pointer |
typedef const value_type& molpro::allocator_< T, A >::const_reference |
typedef std::ptrdiff_t molpro::allocator_< T, A >::difference_type |
typedef value_type* molpro::allocator_< T, A >::pointer |
typedef value_type& molpro::allocator_< T, A >::reference |
typedef std::size_t molpro::allocator_< T, A >::size_type |
typedef T molpro::allocator_< T, A >::value_type |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |