MCPcopy Create free account
hub / github.com/deweylab/RSEM / get_value_or

Method get_value_or

boost/optional/optional.hpp:634–634  ·  view source on GitHub ↗

Returns a copy of the value if this is initialized, 'v' otherwise

Source from the content-addressed store, hash-verified

632
633 // Returns a copy of the value if this is initialized, 'v' otherwise
634 reference_const_type get_value_or ( reference_const_type v ) const { return this->is_initialized() ? get() : v ; }
635 reference_type get_value_or ( reference_type v ) { return this->is_initialized() ? get() : v ; }
636
637 // Returns a pointer to the value if this is initialized, otherwise,

Calls 1

getFunction · 0.50

Tested by

no test coverage detected