Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
new_alloc< Type > Class Template Reference

Detailed Description

template<class Type>
class foxxll::new_alloc< Type >

Definition at line 23 of file new_alloc.hpp.

#include <new_alloc.hpp>

Classes

struct  rebind
 

Public Types

using const_pointer = const Type *
 
using const_reference = const Type &
 
using difference_type = std::ptrdiff_t
 
using pointer = Type *
 
using reference = Type &
 
using size_type = std::size_t
 
using value_type = Type
 

Public Member Functions

 new_alloc () noexcept
 
 new_alloc (const new_alloc &) noexcept
 
template<class Rebind >
 new_alloc (const new_alloc< Rebind > &) noexcept
 
 ~new_alloc () noexcept
 
pointer address (reference value) const
 
const_pointer address (const_reference value) const
 
pointer allocate (size_type num, const void *=0)
 
void construct (pointer p, const Type &value)
 
template<typename... Args>
void construct (pointer p, Args &&...args)
 
void deallocate (pointer p, size_type)
 
void destroy (pointer p)
 
size_type max_size () const noexcept
 
template<class Rebind >
 operator std::allocator< Rebind > ()
 

Member Typedef Documentation

using const_pointer = const Type *

Definition at line 46 of file new_alloc.hpp.

using const_reference = const Type &

Definition at line 48 of file new_alloc.hpp.

using difference_type = std::ptrdiff_t

Definition at line 50 of file new_alloc.hpp.

using pointer = Type *

Definition at line 45 of file new_alloc.hpp.

using reference = Type &

Definition at line 47 of file new_alloc.hpp.

using size_type = std::size_t

Definition at line 49 of file new_alloc.hpp.

using value_type = Type

Definition at line 44 of file new_alloc.hpp.

Constructor & Destructor Documentation

new_alloc ( )
inlinenoexcept

Definition at line 68 of file new_alloc.hpp.

new_alloc ( const new_alloc< Type > &  )
inlinenoexcept

Definition at line 69 of file new_alloc.hpp.

new_alloc ( const new_alloc< Rebind > &  )
inlinenoexcept

Definition at line 71 of file new_alloc.hpp.

~new_alloc ( )
inlinenoexcept

Definition at line 72 of file new_alloc.hpp.

Member Function Documentation

pointer address ( reference  value) const
inline

Definition at line 59 of file new_alloc.hpp.

References gen_data::value.

const_pointer address ( const_reference  value) const
inline

Definition at line 63 of file new_alloc.hpp.

References gen_data::value.

pointer allocate ( size_type  num,
const void *  = 0 
)
inline

Definition at line 88 of file new_alloc.hpp.

void construct ( pointer  p,
const Type &  value 
)
inline

Definition at line 96 of file new_alloc.hpp.

void construct ( pointer  p,
Args &&...  args 
)
inline

Definition at line 103 of file new_alloc.hpp.

void deallocate ( pointer  p,
size_type   
)
inline

Definition at line 116 of file new_alloc.hpp.

void destroy ( pointer  p)
inline

Definition at line 109 of file new_alloc.hpp.

size_type max_size ( ) const
inlinenoexcept

Definition at line 82 of file new_alloc.hpp.

References max().

operator std::allocator< Rebind > ( )
inline

Definition at line 75 of file new_alloc.hpp.


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