![]() |
TerraForge3D
2.3.1
3D Terrain And Landscape Generator
|
|
inlinenoexcept |
copy assignment
Copy assignment operator. Copies a JSON value via the "copy and swap" strategy: It is expressed in terms of the copy constructor, destructor, and the swap()
member function.
[in] | other | value to copy from |
@complexity Linear.
@requirement This function helps basic_json
satisfying the Container requirements:
@liveexample{The code below shows and example for the copy assignment. It creates a copy of value a
which is then swapped with b
. Finally\, the copy of a
(which is the null value after the swap) is destroyed.,basic_json__copyassignment}
Definition at line 20021 of file json.hpp.