class
TOptional
- Module
- Arc
- Header
#include "Arc/Core/ArcTypes.h"- Namespace
Arcf- Template
template<typename T>
Constructors
| Signature | Name | Description |
|---|---|---|
TOptional() : m_hasValue(false) | TOptional | |
TOptional(const T& value) : m_value(value), m_hasValue(true) | TOptional | |
TOptional(T&& value) : m_value(std::move(value)), m_hasValue(true) | TOptional |
Public functions
Function details
TOptional
C++
TOptional() : m_hasValue(false)TOptional
C++
TOptional(const T& value) : m_value(value), m_hasValue(true)TOptional
C++
TOptional(T&& value) : m_value(std::move(value)), m_hasValue(true)IsSet
C++
bool IsSet() constoperatorbool
C++
explicit operator bool() constGetValue
C++
const T& GetValue() constGetValue
C++
T& GetValue()Get
C++
const T& Get(const T& defaultValue) constSet
C++
void Set(const T& value)Reset
C++
void Reset()Generated from Arc/Core/ArcTypes.h via arc.json · Nov 5, 2026Version 1.0.0