MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / assign

Method assign

extern/boost/boost/optional/optional.hpp:265–278  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers 5

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

Calls 6

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

Tested by

no test coverage detected