Exchange the value of this object with that of other.
Synopsis
Declared in <bdljsn_json.h>
void
swap(Json& other);
Description
Exchange the value of this with that of the specified other. 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