mirror of
https://github.com/nlohmann/json.git
synced 2026-09-15 20:58:01 +00:00
deploy: c0b2878a44
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user