14#include "../measurements/MeasurementNew.hpp"
18template <
typename T >
29 template <
typename U >
34 template <
typename U >
38 return static_cast < pointer > (
operator new( n *
sizeof ( T ),
false ) );
42 operator delete( ptr, false );
49 template <
class ... Args >
51 ::new (
static_cast < void *
> ( p ) ) T ( std::forward < Args > ( args ) ... );
56template <
typename T,
typename U >
61template <
typename T,
typename U >
Definition: StealthAllocator.hpp:19
void construct(pointer p, Args &&... args)
Definition: StealthAllocator.hpp:50
void destroy(pointer p)
Definition: StealthAllocator.hpp:45
T * pointer
Definition: StealthAllocator.hpp:22
std::size_t size_type
Definition: StealthAllocator.hpp:26
const T & const_reference
Definition: StealthAllocator.hpp:25
T value_type
Definition: StealthAllocator.hpp:21
std::ptrdiff_t difference_type
Definition: StealthAllocator.hpp:27
pointer allocate(size_type n)
Definition: StealthAllocator.hpp:37
void deallocate(pointer ptr, size_type)
Definition: StealthAllocator.hpp:41
const T * const_pointer
Definition: StealthAllocator.hpp:23
stealth_allocator()=default
T & reference
Definition: StealthAllocator.hpp:24
stealth_allocator(const stealth_allocator< U > &)
Definition: StealthAllocator.hpp:35
Definition: StealthAllocator.hpp:16
bool operator==(const stealth_allocator< T > &, const stealth_allocator< U > &)
Definition: StealthAllocator.hpp:57
bool operator!=(const stealth_allocator< T > &, const stealth_allocator< U > &)
Definition: StealthAllocator.hpp:62
Definition: StealthAllocator.hpp:30