mitteLib
Loading...
Searching...
No Matches
StoreOnHeap

Functions

void const * mlab::any_of< Enum, T, Default >::storage_allocated () const
 
void *& mlab::any_of< Enum, T, Default >::storage_allocated ()
 

Detailed Description

These methods allow to use _storage as a regular pointer. The const variants simply return a copy of the pointer.

Function Documentation

◆ storage_allocated() [1/2]

template<class Enum , template< Enum > class T, Enum Default>
void *& mlab::any_of< Enum, T, Default >::storage_allocated ( )
nodiscardprivate
Note
This method allows overwriting the pointer, which is different from the stack case because there the pointer to the storage is defined by ''this''. Here we allocate that manually.

◆ storage_allocated() [2/2]

template<class Enum , template< Enum > class T, Enum Default>
void const * mlab::any_of< Enum, T, Default >::storage_allocated ( ) const
nodiscardprivate