MCPcopy Create free account
hub / github.com/ablab/spades / assign

Method assign

ext/include/boost/optional/optional.hpp:266–279  ·  view source on GitHub ↗

Assigns from another optional (deep-copies the rhs value)

Source from the content-addressed store, hash-verified

264
265 // Assigns from another optional<T> (deep-copies the rhs value)
266 void assign ( optional_base const& rhs )
267 {
268 if (is_initialized())
269 {
270 if ( rhs.is_initialized() )
271 assign_value(rhs.get_impl());
272 else destroy();
273 }
274 else
275 {
276 if ( rhs.is_initialized() )
277 construct(rhs.get_impl());
278 }
279 }
280
281#ifndef BOOST_OPTIONAL_DETAIL_NO_RVALUE_REFERENCES
282 // Assigns from another optional<T> (deep-moves the rhs value)

Callers 6

optional_baseClass · 0.95
BOOST_NOEXCEPT_IFMethod · 0.95
optional.hppFile · 0.45
BOOST_NOEXCEPT_IFFunction · 0.45
type operator=Method · 0.45
operator>>Method · 0.45

Calls 6

assign_valueClass · 0.85
constructFunction · 0.85
destroyFunction · 0.50
is_initializedMethod · 0.45
get_implMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected