MCPcopy Create free account
hub / github.com/JDAI-CV/DNNLibrary / optional

Method optional

include/common/optional.h:760–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

758
759 // 2 - copy-construct
760 optional_constexpr14 optional( optional const & other
761#if optional_CPP11_OR_GREATER
762 optional_REQUIRES_A(
763 true || std::is_copy_constructible<T>::value
764 )
765#endif
766 )
767 : has_value_( other.has_value() )
768 {
769 if ( other.has_value() )
770 contained.construct_value( other.contained.value() );
771 }
772
773#if optional_CPP11_OR_GREATER
774

Callers

nothing calls this directly

Calls 1

has_valueMethod · 0.45

Tested by

no test coverage detected