Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
std::chrono::chrono_detail::check_conversion_overflow< FromPeriod, ToPeriod > Class Template Reference

Helper to detect if duration conversion would cause overflow. More...

Static Public Attributes

static constexpr auto value
 True if FromPeriod can be converted to ToPeriod without risk of overflow.
 

Detailed Description

template<typename FromPeriod, typename ToPeriod>
class std::chrono::chrono_detail::check_conversion_overflow< FromPeriod, ToPeriod >

Helper to detect if duration conversion would cause overflow.

Template Parameters
FromPeriodThe period of the source duration
ToPeriodThe period of the target duration

Member Data Documentation

◆ value

template<typename FromPeriod, typename ToPeriod>
auto std::chrono::chrono_detail::check_conversion_overflow< FromPeriod, ToPeriod >::value
staticconstexpr
Initial value:

True if FromPeriod can be converted to ToPeriod without risk of overflow.


The documentation for this class was generated from the following file: