|
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
108 #endif // not TESTTOOLS_TESTALLOC_H
size_type max_size() const
constexpr static size_t MAGIC
void deallocate(pointer p, size_type n)
pointer address(reference x) const
bool operator==(const TestAlloc &) 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)
const_pointer address(const_reference x) const