value::as_int64
Return a reference to the underlying string
, or throw an exception.
Synopsis
std::int64_t&
as_int64(
boost::source_location const& loc = BOOST_CURRENT_LOCATION); (1)
std::int64_t
as_int64(
boost::source_location const& loc = BOOST_CURRENT_LOCATION) const; (2)
Description
If is_string()
is true
, returns a reference to the underlying string
, otherwise throws an exception.
Exception Safety
Strong guarantee.
Parameters
Name | Description |
---|---|
|
|
Exceptions
Type | Thrown On |
---|---|
|
|
Complexity
Constant.