MCPcopy Create free account
hub / github.com/ThePhD/sol2 / make_optional

Function make_optional

include/sol/optional_implementation.hpp:1618–1620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1616
1617 template <class T = detail::i_am_secret, class U, class Ret = detail::conditional_t<std::is_same<T, detail::i_am_secret>::value, detail::decay_t<U>, T>>
1618 inline constexpr optional<Ret> make_optional(U&& v) {
1619 return optional<Ret>(std::forward<U>(v));
1620 }
1621
1622 template <class T, class... Args>
1623 inline constexpr optional<T> make_optional(Args&&... args) {

Callers 1

optional_map_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected