|
ATLAS Offline Software
|
Go to the documentation of this file.
13 #ifndef TESTTOOLS_TESTALLOC_H
14 #define TESTTOOLS_TESTALLOC_H
40 constexpr
static size_t MAGIC = 0xdeadbeeffeedabba;
70 template <
class...
Args>
75 # pragma GCC diagnostic push
76 # pragma GCC diagnostic ignored "-Wstringop-overflow"
78 new (
p) T(std::forward<Args>(
args)...);
80 # pragma GCC diagnostic pop
100 {
return this == &
other; }
102 {
return this != &
other; }
109 #endif // not TESTTOOLS_TESTALLOC_H
size_type max_size() const
constexpr static size_t MAGIC
void deallocate(pointer p, size_type n)
bool operator!=(const TestAlloc &other) const
pointer address(reference x) const
functions & macros to test the difference between floats
To test handling of non-standard memory allocators.
pointer allocate(size_type n, const void *=0)
T * pointer
Standard STL allocator typedefs.
const T & const_reference
ptrdiff_t difference_type
void construct(pointer p, Args &&... args)
bool operator==(const TestAlloc &other) const
const_pointer address(const_reference x) const