@brief exchanges the values @sa https://json.nlohmann.me/api/basic_json/swap/
| 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/ |