Zen C++ Libraries
Zero-dependency re-usable components for C++
Loading...
Searching...
No Matches
value Class Reference

Public Types

using array = std::vector<value>
using object = seq_map<string, value>

Public Member Functions

 value (null)
 value (bool b)
 value (bigint i)
 value (fractional f)
 value (object o)
 value (array value)
 value (string s)
 value (const value &other)
 value (value &&other)
valueoperator= (const value &other)
valueoperator= (value &&other)
value_type get_type () const noexcept
bool & as_boolean ()
const bool & as_boolean () const
string & as_string ()
const string & as_string () const
bigint & as_integer ()
const bigint & as_integer () const
fractional & as_fractional ()
const fractional & as_fractional () const
array & as_array ()
const array & as_array () const
object & as_object ()
const object & as_object () const
bool is_true () const noexcept
bool is_false () const noexcept
bool is_boolean () const noexcept
bool is_integer () const noexcept
bool is_fractional () const noexcept
bool is_null () const noexcept
bool is_string () const noexcept
bool is_object () const noexcept
bool is_array () const noexcept

The documentation for this class was generated from the following file: