13#ifndef TESTTOOLS_TESTALLOC_H
14#define TESTTOOLS_TESTALLOC_H
40 constexpr static size_t MAGIC = 0xdeadbeeffeedabba;
47 void* p = malloc (
sizeof(
Head) + n*
sizeof(T));
52 return reinterpret_cast<pointer>(
h+1);
71 template <
class...
Args>
76# pragma GCC diagnostic push
77# pragma GCC diagnostic ignored "-Wstringop-overflow"
79 new (p) T(std::forward<Args>(args)...);
81# pragma GCC diagnostic pop
Header file for AthHistogramAlgorithm.
To test handling of non-standard memory allocators.
const T & const_reference
const_pointer address(const_reference x) const
pointer address(reference x) const
ptrdiff_t difference_type
size_type max_size() const
T * pointer
Standard STL allocator typedefs.
pointer allocate(size_type n, const void *=0)
void deallocate(pointer p, size_type n)
bool operator==(const TestAlloc &) const
void construct(pointer p, Args &&... args)
static constexpr size_t MAGIC
functions & macros to test the difference between floats