BloombergLP::bdljsn::Json::makeNumber

makeNumber overloads

Synopses

Declared in <bdljsn_json.h>

Create an instance of type JsonNumber in this object, using the allocator currently held by this object to supply memory, and return a reference providing modifiable access to the created instance. Optionally specify number to initialize the JsonNumber created. This method first destroys the current value held by this object (even if the type currently held is JsonNumber).

JsonNumber&
makeNumber();
» more...

Set the value of this object to be a "Number" value. Optionally specify the value of the "Number".

JsonNumber&
makeNumber(bslmf::MovableRef<JsonNumber> number);
» more...

Same as the overload taking no arguments, but initialize the created JsonNumber from the specified number.

JsonNumber&
makeNumber(JsonNumber const& number);
» more...