|
dune-common 2.10
|
CRTP base mixin class to check alignment. More...
#include <dune/common/debugalign.hh>

Static Public Member Functions | |
| static void * | operator new (std::size_t count, void *ptr) |
| Overload of placement new. | |
| static void * | operator new[] (std::size_t count, void *ptr) |
| Overload of placement new[]. | |
CRTP base mixin class to check alignment.
|
inlinestatic |
Overload of placement new.
Checks if address is misaligned and forwards to global new
| count | number of elements to allocate |
| ptr | address of the placement new |
|
inlinestatic |
Overload of placement new[].
Checks if address is misaligned and forwards to global new
| count | number of elements to allocate |
| ptr | address of the placement new |