DUNE PDELab (git)

Dune::AlignedNumberImpl::AlignedNumber< T, align > Class Template Reference

aligned wrappers for arithmetic types More...

#include <dune/common/debugalign.hh>

Static Public Member Functions

static void * operator new (std::size_t count, void *ptr)
 Overload of placement new. More...
 
static void * operator new[] (std::size_t count, void *ptr)
 Overload of placement new[]. More...
 

Detailed Description

template<class T, std::size_t align>
class Dune::AlignedNumberImpl::AlignedNumber< T, align >

aligned wrappers for arithmetic types

Member Function Documentation

◆ operator new()

static void * Dune::AlignedBase< align, AlignedNumber< T, align > >::operator new ( std::size_t  count,
void *  ptr 
)
inlinestaticinherited

Overload of placement new.

Checks if address is misaligned and forwards to global new

Parameters
countnumber of elements to allocate
ptraddress of the placement new
Returns
void* the address where the object is placed

◆ operator new[]()

static void * Dune::AlignedBase< align, AlignedNumber< T, align > >::operator new[] ( std::size_t  count,
void *  ptr 
)
inlinestaticinherited

Overload of placement new[].

Checks if address is misaligned and forwards to global new

Parameters
countnumber of elements to allocate
ptraddress of the placement new
Returns
void* the address where the object is placed

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 24, 23:30, 2024)