STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions
stapl::lazy_storage< T, Align > Struct Template Reference

Provides lazy construction of objects with automatic storage. More...

Public Member Functions

template<typename... U>
void construct (U &&... u)
 
void destroy (void) noexcept
 
T const & get (void) const noexcept
 
T & get (void) noexcept
 
moveout (void)
 

Detailed Description

template<typename T, std::size_t Align = std::alignment_of<T>::value>
struct stapl::lazy_storage< T, Align >

Provides lazy construction of objects with automatic storage.

Template Parameters
TObject type.
AlignObject alignment.

This struct is a POD and while it reserves stack space for the object, the object is initialized only when it is explicitly required to.


The documentation for this struct was generated from the following file: