MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / swap

Function swap

Source/external/json.hpp:22632–22645  ·  view source on GitHub ↗

@brief exchanges the values @sa https://json.nlohmann.me/api/basic_json/swap/

Source from the content-addressed store, hash-verified

22630 /// @brief exchanges the values
22631 /// @sa https://json.nlohmann.me/api/basic_json/swap/
22632 void swap(reference other) noexcept (
22633 std::is_nothrow_move_constructible<value_t>::value&&
22634 std::is_nothrow_move_assignable<value_t>::value&&
22635 std::is_nothrow_move_constructible<json_value>::value&&
22636 std::is_nothrow_move_assignable<json_value>::value
22637 )
22638 {
22639 std::swap(m_type, other.m_type);
22640 std::swap(m_value, other.m_value);
22641
22642 set_parents();
22643 other.set_parents();
22644 assert_invariant();
22645 }
22646
22647 /// @brief exchanges the values
22648 /// @sa https://json.nlohmann.me/api/basic_json/swap/

Callers 1

json.hppFile · 0.85

Calls 8

set_parentsFunction · 0.85
is_arrayFunction · 0.85
createFunction · 0.85
concatFunction · 0.85
type_nameFunction · 0.85
is_objectFunction · 0.85
is_stringFunction · 0.85
is_binaryFunction · 0.85

Tested by

no test coverage detected