uninit
The ztd::uninit type is for holding a type that may be initialized by-default into an uninitialized state (e.g., for C-style arrays that are a member of a class).
-
template<typename _Type>
class uninit A class for holding a value inside of an unnamed union which is composed of two objects, one of
charand one of_Type.Public Functions
-
inline constexpr uninit()
Constructs an empty placeholder.
-
template<typename ..._Args>
inline constexpr uninit(::std::in_place_t, _Args&&... __args) Constructs the
valuefrom the given arguments.- Parameters
__args – [in] The arguments to construct
valuewith.
-
inline ~uninit()
An empty destructor. Required, as there is a union object present.
Public Members
-
char placeholder
Placeholder empty value for default / empty initialization, esp. with arrays.
-
inline constexpr uninit()