This class is a replacement for C++17 std::optional. More...
#include <cvb/shims/optional.hpp>
Related Functions | |
(Note that these are not member functions.) | |
template<class T > | |
optional< typename std::decay< T >::type > | make_optional (T &&value) |
Factory function to create an optional from a T object. More... | |
template<class T , class... ARGS> | |
optional< T > | make_optional (ARGS &&... args) |
Factory function to in-place construct a T in an optional. More... | |
This class is a replacement for C++17 std::optional.
|
related |
Factory function to in-place construct a T
in an optional.
T | Type of value to store. |
ARGS | Type list of all arguments to be forwarded to T . |
[in] | args | Arguments to be forwarded to the ctor of T . |
T
.
|
related |
Factory function to create an optional from a T
object.
T | Type of value to store. |
[in] | value | Value to be forwarded to the optional. |