class
TLazy
- Module
- Core
- Header
#include "Core/TLazy.h"- Namespace
Mowo- Template
template<typename T>
Constructors
| Signature | Name | Description |
|---|---|---|
TLazy() = default | TLazy | |
explicit TLazy(std::function<T()> factory) : m_factory(std::move(factory)) | TLazy | The lambda is called once on first Get(). |
TLazy(const TLazy&) = delete | TLazy |
Public functions
| Returns | Name | Description |
|---|---|---|
TLazy& | operator= | |
T& | Get | |
bool | IsInitialized | |
T* | TryGet | Pointer-style — only safe AFTER first Get() or IsInitialized. |
const T* | TryGet |
Function details
TLazy
C++
TLazy() = defaultTLazy
C++
explicit TLazy(std::function<T()> factory) : m_factory(std::move(factory))The lambda is called once on first Get().
TLazy
C++
TLazy(const TLazy&) = deleteoperator=
C++
TLazy& operator=(const TLazy&) = deleteGet
C++
T& Get()IsInitialized
C++
bool IsInitialized() const noexceptTryGet
C++
T* TryGet() noexceptPointer-style — only safe AFTER first Get() or IsInitialized.
TryGet
C++
const T* TryGet() const noexceptGenerated from Core/TLazy.h via core.json · Nov 5, 2026Version 1.0.0