MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / optional

Function optional

extlibs/sol3/include/sol/sol.hpp:4531–4532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4529 /// \synopsis template <class U=T> constexpr optional(U &&u);
4530 template <class U = T, detail::enable_if_t<std::is_convertible<U&&, T>::value>* = nullptr, detail::enable_forward_value<T, U>* = nullptr>
4531 constexpr optional(U&& u) : base(in_place, std::forward<U>(u)) {
4532 }
4533
4534 /// \exclude
4535 template <class U = T, detail::enable_if_t<!std::is_convertible<U&&, T>::value>* = nullptr, detail::enable_forward_value<T, U>* = nullptr>

Callers

nothing calls this directly

Calls 2

has_valueMethod · 0.45
constructMethod · 0.45

Tested by

no test coverage detected