#include <utility>
#include <boost/optional.hpp>
Go to the source code of this file.
|
template<typename T > |
using | Optional = boost::optional< T > |
| Substitute for C++17 std::optional. More...
|
|
|
static auto & | nullopt = boost::none |
| Substitute for C++17 std::nullopt. More...
|
|
◆ Optional
Substitute for C++17 std::optional.
◆ MakeOptional()
template<typename T >
Optional<T> MakeOptional |
( |
bool |
condition, |
|
|
T && |
value |
|
) |
| |
Substitute for C++17 std::make_optional.
◆ nullopt
auto& nullopt = boost::none |
|
static |
Substitute for C++17 std::nullopt.