This commit is contained in:
nlohmann
2026-09-13 15:45:19 +00:00
parent 4f1012d091
commit dcf231927a
265 changed files with 548 additions and 519 deletions
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -33,8 +33,8 @@ void swap(binary_t& other);
void swap(typename binary_t::container_type& other);
```
1. Exchanges the contents of the JSON value with those of `other`. Does not invoke any move, copy, or swap operations on individual elements. All iterators and references remain valid. The past-the-end iterator is invalidated.
1. Exchanges the contents of the JSON value from `left` with those of `right`. Does not invoke any move, copy, or swap operations on individual elements. All iterators and references remain valid. The past-the-end iterator is invalidated. Implemented as a friend function callable via ADL.
1. Exchanges the contents of the JSON value with those of `other`. Does not invoke any move, copy, or swap operations on individual elements. All iterators and references remain valid. The past-the-end iterator is invalidated. If macro [`JSON_DIAGNOSTIC_POSITIONS`](https://json.nlohmann.me/api/macros/json_diagnostic_positions/index.md) is defined to `1`, the [`start_pos()`](https://json.nlohmann.me/api/basic_json/start_pos/index.md)/[`end_pos()`](https://json.nlohmann.me/api/basic_json/end_pos/index.md) diagnostic positions are exchanged along with the value.
1. Exchanges the contents of the JSON value from `left` with those of `right`. Does not invoke any move, copy, or swap operations on individual elements. All iterators and references remain valid. The past-the-end iterator is invalidated. Implemented as a friend function callable via ADL. If macro [`JSON_DIAGNOSTIC_POSITIONS`](https://json.nlohmann.me/api/macros/json_diagnostic_positions/index.md) is defined to `1`, the [`start_pos()`](https://json.nlohmann.me/api/basic_json/start_pos/index.md)/[`end_pos()`](https://json.nlohmann.me/api/basic_json/end_pos/index.md) diagnostic positions are exchanged along with the value.
1. Exchanges the contents of a JSON array with those of `other`. Does not invoke any move, copy, or swap operations on individual elements. All iterators and references remain valid. The past-the-end iterator is invalidated.
1. Exchanges the contents of a JSON object with those of `other`. Does not invoke any move, copy, or swap operations on individual elements. All iterators and references remain valid. The past-the-end iterator is invalidated.
1. Exchanges the contents of a JSON string with those of `other`. Does not invoke any move, copy, or swap operations on individual elements. All iterators and references remain valid. The past-the-end iterator is invalidated.