|
AUI Framework
master
Cross-platform base for C++ UI apps
|
A value that initializes when accessed for the first time. Unlike aui::lazy, internal logic of aui::atomic_lazy is threadsafe.
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> | |
| atomic_lazy (Factory &&initializer) | |
| atomic_lazy (const atomic_lazy< T > &other) | |
| atomic_lazy (atomic_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 |
| atomic_lazy< T > & | operator= (T &&t) |
| atomic_lazy< T > & | operator= (const T &t) |
| void | reset () |
| bool | hasValue () const noexcept |
| T |