MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / swap

Function swap

include/behaviortree_cpp/contrib/expected.hpp:1397–1403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1395 std17::is_swappable<U>::value
1396 )
1397 swap( unexpected_type & other ) noexcept (
1398 std17::is_nothrow_swappable<U>::value
1399 )
1400 {
1401 using std::swap;
1402 swap( m_error, other.m_error );
1403 }
1404
1405 // TODO: ??? unexpected_type: in-class friend operator==, !=
1406

Callers 2

is_swappableClass · 0.70
satisfiesMethod · 0.70

Calls 9

moveFunction · 0.85
swapMethod · 0.45
valueMethod · 0.45
destruct_errorMethod · 0.45
construct_valueMethod · 0.45
destruct_valueMethod · 0.45
construct_errorMethod · 0.45
has_valueMethod · 0.45
set_has_valueMethod · 0.45

Tested by

no test coverage detected