Template Function TRAP::MakeOptional(Args&&…)#

Function Documentation#

template<typename T, typename ...Args>
constexpr auto TRAP::MakeOptional(Args&&... args)#

Creates an optional object constructed in-place from args….

Parameters:

args – Arguments to be passed to the constructor of T.

Returns:

The constructed optional object.