HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
v1::safe_int< T, OnOverflow > Struct Template Reference

Public Types

using value_type = T

Public Member Functions

 safe_int (safe_int const &)=default
 safe_int (safe_int &&)=default
safe_int & operator= (safe_int const &)=default
safe_int & operator= (safe_int &&)=default
 safe_int (std::integral auto const &other) noexcept(OnOverflow !=on_overflow_t::Throw)
 safe_int (std::floating_point auto const &other) noexcept(OnOverflow !=on_overflow_t::Throw)
template<typename O, on_overflow_t OtherOnOverflow>
 safe_int (safe_int< O, OtherOnOverflow > const &other) noexcept(OnOverflow !=on_overflow_t::Throw)
safe_int & operator= (std::integral auto const &other) noexcept(OnOverflow !=on_overflow_t::Throw)
template<typename O, on_overflow_t OtherOnOverflow>
safe_int & operator= (safe_int< O, OtherOnOverflow > const &other) noexcept(OnOverflow !=on_overflow_t::Throw)
template<std::integral O>
 operator O () const noexcept(OnOverflow !=on_overflow_t::Throw)
template<std::floating_point O>
 operator O () const noexcept

Data Fields

value

Static Public Attributes

static constexpr on_overflow_t on_overflow = OnOverflow

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