MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / swap

Function swap

extern/json/json.hpp:22676–22689  ·  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

22674 /// @brief exchanges the values
22675 /// @sa https://json.nlohmann.me/api/basic_json/swap/
22676 void swap(reference other) noexcept (
22677 std::is_nothrow_move_constructible<value_t>::value&&
22678 std::is_nothrow_move_assignable<value_t>::value&&
22679 std::is_nothrow_move_constructible<json_value>::value&&
22680 std::is_nothrow_move_assignable<json_value>::value
22681 )
22682 {
22683 std::swap(m_type, other.m_type);
22684 std::swap(m_value, other.m_value);
22685
22686 set_parents();
22687 other.set_parents();
22688 assert_invariant();
22689 }
22690
22691 /// @brief exchanges the values
22692 /// @sa https://json.nlohmann.me/api/basic_json/swap/

Callers 1

json.hppFile · 0.70

Calls 9

set_parentsFunction · 0.85
is_arrayFunction · 0.85
type_nameFunction · 0.85
is_objectFunction · 0.85
is_stringFunction · 0.85
is_binaryFunction · 0.85
createFunction · 0.70
concatFunction · 0.70
swapMethod · 0.45

Tested by

no test coverage detected