value::as_uint64
Return the underlying std::uint64_t, or throw an exception.
Synopsis
std::uint64_t&
as_uint64(
boost::source_location const& loc = BOOST_CURRENT_LOCATION); (1)
std::uint64_t
as_uint64(
boost::source_location const& loc = BOOST_CURRENT_LOCATION) const; (2)
Description
If is_uint64() is true, returns a reference to (1) or a copy of (2) the underlying std::uint64_t, otherwise throws an exception.
|
This function is 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.