6 #pragma warning (disable: 4100) // 'identifier': unreferenced formal parameter 12 #include <cppassist/cppassist_api.h> 22 template <
class T,
int N>
48 inline pointer
address(reference r) {
return &r; }
49 inline const_pointer
address(const_reference r)
const {
return &r; }
51 pointer allocate(size_type n,
typename std::allocator<void>::const_pointer hint = 0);
52 inline void deallocate(pointer p, size_type);
54 inline void construct(pointer p, const_reference
value) {
new (p) value_type(value); }
55 inline void destroy(pointer p) { p->~value_type(); }
57 inline size_type
max_size()
const throw() {
return size_type(-1) /
sizeof(T); }
T * pointer
Definition: allocator.h:29
void destroy(pointer p)
Definition: allocator.h:55
Definition: allocator.h:35
const_pointer address(const_reference r) const
Definition: allocator.h:49
~aligned_allocator()
Definition: allocator.h:46
Definition: ArgumentParser.h:12
aligned_allocator(const aligned_allocator< U, N > &)
Definition: allocator.h:44
bool operator==(const aligned_allocator &)
Definition: allocator.h:59
Definition: allocator.h:23
ptrdiff_t difference_type
Definition: allocator.h:32
const T * const_pointer
Definition: allocator.h:30
void construct(pointer p, const_reference value)
Definition: allocator.h:54
size_type max_size() const
Definition: allocator.h:57
const T & const_reference
Definition: allocator.h:28
aligned_allocator(const aligned_allocator &)
Definition: allocator.h:41
T & reference
Definition: allocator.h:27
aligned_allocator()
Definition: allocator.h:40
pointer address(reference r)
Definition: allocator.h:48
T value_type
Definition: allocator.h:26
aligned_allocator< U, N > other
Definition: allocator.h:37
bool operator!=(const aligned_allocator &rhs)
Definition: allocator.h:60
size_t size_type
Definition: allocator.h:31