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

Class is_swappable

include/behaviortree_cpp/contrib/expected.hpp:429–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427using std::swap;
428
429struct is_swappable
430{
431 template< typename T, typename = decltype( swap( std::declval<T&>(), std::declval<T&>() ) ) >
432 static std::true_type test( int /* unused */);
433
434 template< typename >
435 static std::false_type test(...);
436};
437
438struct is_nothrow_swappable
439{

Callers

nothing calls this directly

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected