Thrill  0.1
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

◆ const_pointer

using const_pointer = const Type *

Definition at line 46 of file new_alloc.hpp.

◆ const_reference

using const_reference = const Type &

Definition at line 48 of file new_alloc.hpp.

◆ difference_type

using difference_type = std::ptrdiff_t

Definition at line 50 of file new_alloc.hpp.

◆ pointer

using pointer = Type *

Definition at line 45 of file new_alloc.hpp.

◆ reference

using reference = Type &

Definition at line 47 of file new_alloc.hpp.

◆ size_type

using size_type = std::size_t

Definition at line 49 of file new_alloc.hpp.

◆ value_type

using value_type = Type

Definition at line 44 of file new_alloc.hpp.

Constructor & Destructor Documentation

◆ new_alloc() [1/3]

new_alloc ( )
inlinenoexcept

Definition at line 68 of file new_alloc.hpp.

◆ new_alloc() [2/3]

new_alloc ( const new_alloc< Type > &  )
inlinenoexcept

Definition at line 69 of file new_alloc.hpp.

◆ new_alloc() [3/3]

new_alloc ( const new_alloc< Rebind > &  )
inlinenoexcept

Definition at line 71 of file new_alloc.hpp.

◆ ~new_alloc()

~new_alloc ( )
inlinenoexcept

Definition at line 72 of file new_alloc.hpp.

Member Function Documentation

◆ address() [1/2]

pointer address ( reference  value) const
inline

Definition at line 59 of file new_alloc.hpp.

References gen_data::value.

◆ address() [2/2]

const_pointer address ( const_reference  value) const
inline

Definition at line 63 of file new_alloc.hpp.

References gen_data::value.

◆ allocate()

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

Definition at line 88 of file new_alloc.hpp.

◆ construct() [1/2]

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

Definition at line 96 of file new_alloc.hpp.

◆ construct() [2/2]

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

Definition at line 103 of file new_alloc.hpp.

◆ deallocate()

void deallocate ( pointer  p,
size_type   
)
inline

Definition at line 116 of file new_alloc.hpp.

◆ destroy()

void destroy ( pointer  p)
inline

Definition at line 109 of file new_alloc.hpp.

◆ max_size()

size_type max_size ( ) const
inlinenoexcept

Definition at line 82 of file new_alloc.hpp.

References max().

◆ operator std::allocator< Rebind >()

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: