BloombergLP::bdljsn::JsonNumber::JsonNumber

Create a JsonNumber by moving from original using allocator.

Synopsis

Declared in <bdljsn_jsonnumber.h>

JsonNumber(
    bslmf::MovableRef<JsonNumber> original,
    allocator_type const& allocator);

Description

The allocator of original remains unchanged. If original and the newly created object have the same allocator then the value of original becomes unspecified but valid, and no exceptions will be thrown; otherwise original is unchanged (and an exception may be thrown).

Parameters

NameDescription
originalobject to move from
allocatorallocator used to supply memory