Create a JsonArray by moving from original using basicAllocator.
Synopsis
Declared in <bdljsn_json.h>
JsonArray(
bslmf::MovableRef<JsonArray> original,
bslma::Allocator* basicAllocator);
Description
Create a JsonArray having the same value as the specified original object that uses the specified basicAllocator to supply memory. The contents of original are moved (in constant time) to the new JsonArray object if basicAllocator == original.allocator(), and are move‐inserted (in linear time) using basicAllocator otherwise. original is left in a valid but unspecified state.
Parameters
Name |
Description |
original |
source array |
basicAllocator |
memory allocator; null uses the default |
Created with MrDocs