Template Function TRAP::MakeOptional(U&&)#

Function Documentation#

template<typename T = INTERNAL::IAmSecret, typename U, typename Ret = std::conditional_t<std::is_same_v<T, INTERNAL::IAmSecret>, std::decay_t<U>, T>>
constexpr auto TRAP::MakeOptional(U &&v)#

Creates an optional object from v.

Parameters:

v – The value to construct optional object with.

Returns:

The constructed optional object.