MCPcopy Create free account
hub / github.com/p-ranav/tabulate / optional

Function optional

include/tabulate/optional_lite.hpp:874–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872 !std::is_convertible<U &&, T>::value /*=> explicit */
873 )>
874 explicit optional(optional<U> &&other) : has_value_(other.has_value()) {
875 if (other.has_value()) {
876 contained.construct_value(T{std::move(other.contained.value())});
877 }
878 }
879
880 // 5a (C++11) - non-explicit converting move-construct from optional
881 template <typename U optional_REQUIRES_T(std::is_constructible<T, U &&>::value &&

Callers 1

operator=Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected