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

Method conjunction

extlibs/sol3/include/sol/sol.hpp:4408–4411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4406 /// \returns `u` if `*this` has a value, otherwise an empty optional.
4407 template <class U>
4408 constexpr optional<typename std::decay<U>::type> conjunction(U&& u) const {
4409 using result = optional<detail::decay_t<U>>;
4410 return has_value() ? result { u } : result { nullopt };
4411 }
4412
4413 /// \returns `rhs` if `*this` is empty, otherwise the current value.
4414 /// \group disjunction

Callers

nothing calls this directly

Calls 1

has_valueFunction · 0.85

Tested by

no test coverage detected