cheatah
Class

parsers::json::Number

A JSON number token (one numeric type: IEEE-754 double), e.g.

Number{3.5}.

Functions

fn Number(double value) source#

Construct from a double.

Parameters
value

the numeric value.

Complexity

O(1).

Allocation

none.

fn ~Number()=default source#
fn double value() const noexcept source#

Read the numeric value (fixed for the token's lifetime; no setter).

Returns

the stored double.

Complexity

O(1).

Allocation

none.

Constants & variables

var double value_ source#