#include <types.h>
Public Member Functions | |
lazy () | |
lazy (std::function< T()> initializer) | |
lazy (lazy &&other) noexcept | |
T & | operator* () |
const T & | operator* () const |
T * | operator-> () const |
lazy & | operator= (std::function< T()> func) noexcept |
lazy & | operator= (lazy &&other) noexcept |
void | reset () const |
Private Member Functions | |
T * | operate () const |
Private Attributes | |
std::function< T()> | _init |
std::mutex | _mtx |
std::unique_ptr< T > | _ptr |
bool | _was_init = false |
Definition at line 405 of file src/types.h.
|
inline |
Definition at line 408 of file src/types.h.
|
inline |
Definition at line 409 of file src/types.h.
|
inlinenoexcept |
Definition at line 426 of file src/types.h.
|
inlineprivate |
Definition at line 477 of file src/types.h.
|
inline |
Definition at line 416 of file src/types.h.
|
inline |
Definition at line 421 of file src/types.h.
|
inline |
Definition at line 411 of file src/types.h.
|
inlinenoexcept |
Definition at line 442 of file src/types.h.
|
inlinenoexcept |
Definition at line 447 of file src/types.h.
|
inline |
Definition at line 466 of file src/types.h.
|
private |
Definition at line 490 of file src/types.h.
|
mutableprivate |
Definition at line 488 of file src/types.h.
|
mutableprivate |
Definition at line 491 of file src/types.h.
|
mutableprivate |
Definition at line 489 of file src/types.h.