Create a JsonNumber having the same value and allocator as text.

Synopsis

Declared in <bdljsn_jsonnumber.h>

explicit
JsonNumber(bslmf::MovableRef<bsl::string> text);

Description

The contents of the value string becomes unspecified but valid, and its allocator remains unchanged. The behavior is undefined unless isValidNumber(text) is true. See {JSON Textual Specification}.

Parameters

Name

Description

text

JSON number text to move from

Created with MrDocs