| Home | Libraries | People | FAQ | More

###### value::as_uint64 (2 of 2 overloads)

Return the underlying `std::uint64_t`, or throw an exception.

<h7> Synopsis </h7>

    std::uint64_t
    as_uint64() const;

<h7> Description </h7>

If `is_int64()` is `true`, returns the underlying `std::uint64_t`, otherwise throws an exception.

<h7> Complexity </h7>

Constant.

<h7> Exception Safety </h7>

Strong guarantee.

<h7> Exceptions </h7>

Type | Thrown On
--- | ---
`std::length_error` | `! this->is_uint64()`