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