value::as_int64
Return the underlying std::int64_t
, 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_int64()
is true
, returns a reference to (1) or a copy of (2) the underlying std::int64_t
, otherwise throws an exception.
This function is the intended for direct access to the underlying object, if it has the type |
Exception Safety
Strong guarantee.
Parameters
Name | Description |
---|---|
|
|
Exceptions
Type | Thrown On |
---|---|
|
|
Complexity
Constant.