Exchange the value of this object with that of other.
Synopsis
Declared in <bdljsn_json.h>
void
swap(JsonObject& other);
Description
Exchange the value of this object with that of the specified other object. If an exception is thrown, both objects are left in valid but unspecified states. This operation guarantees O[1]complexity. The behavior is undefined unless this object was created with the same allocator as other.
Parameters
Name |
Description |
other |
object with which to exchange values |
Created with MrDocs