Replace this value with a JsonNumber moved from number.
Synopsis
Declared in <bdljsn_json.h>
JsonNumber&
makeNumber(bslmf::MovableRef<JsonNumber> number);
Description
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. Initialize the JsonNumber by moving from the specified number. This method first destroys the current value held by this object (even if the type currently held is JsonNumber).
Return Value
a reference providing modifiable access to the held JsonNumber
Parameters
Name |
Description |
number |
value used to initialize the created number |
Created with MrDocs