libycxx

function template

std::saturating_cast

Header
<numeric>
Scope
std
cppreference
<numeric> nearest page

Synopsis

template</* implementation-defined */ R, /* implementation-defined */ T>
constexpr R saturating_cast(T x) noexcept;