|
xentara-utils v2.0.6
The Xentara Utility Library
|
A container that holds an object that is safe from the static initialization order fiasco. More...
#include <xentara/utils/memory/SafeGlobal.hpp>
Public Member Functions | |
| auto | get () const noexcept -> const Object & |
| Gets the object. | |
| auto | get () noexcept -> Object & |
| Gets the object. | |
| auto | operator* () const noexcept -> const Object & |
| Indirection operator. | |
| auto | operator* () noexcept -> Object & |
| Indirection operator. | |
| auto | operator-> () const noexcept -> const Object * |
| Member access operator. | |
| auto | operator-> () noexcept -> Object * |
| Member access operator. | |
A container that holds an object that is safe from the static initialization order fiasco.
This class contains a value constructed object that can safely be used from constructors of other globals without having to worry about static initialization order
|
noexcept |
Gets the object.
|
noexcept |
Gets the object.
|
noexcept |
Indirection operator.
|
noexcept |
Indirection operator.
|
noexcept |
Member access operator.
|
noexcept |
Member access operator.