AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
aui::lazy< T > Struct Template Reference

A value that initializes when accessed for the first time. More...

#include <AUI/Traits/values.h>

Public Member Functions

template<typename Factory, std::enable_if_t< std::is_invocable_r_v< T, Factory >, bool > = true>
 lazy (Factory &&initializer) noexcept
 
 lazy (const lazy< T > &other) noexcept
 
 lazy (lazy< T > &&other) noexcept
 
T & get ()
 
const T & get () const
 
 operator T& ()
 
 operator const T & () const
 
T & operator* ()
 
const T & operator* () const
 
T * operator-> ()
 
T const * operator-> () const
 
lazy< T > & operator= (T &&t)
 
lazy< T > & operator= (const T &t)
 
void reset ()
 
 operator bool () const noexcept
 
bool hasValue () const noexcept
 

Detailed Description

template<typename T = void>
struct aui::lazy< T >

A value that initializes when accessed for the first time.

Template Parameters
T

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