HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Data Fields | Static Public Attributes
tt::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_intoperator= (safe_int const &)=default
 
safe_intoperator= (safe_int &&)=default
 
template<typename O , std::enable_if_t< std::is_integral_v< O >, int > = 0>
 safe_int (O const &other) noexcept(OnOverflow !=on_overflow_t::Throw)
 
template<typename O , std::enable_if_t< std::is_floating_point_v< O >, int > = 0>
 safe_int (O 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)
 
template<typename O , std::enable_if_t< std::is_integral_v< O >, int > = 0>
safe_intoperator= (O const &other) noexcept(OnOverflow !=on_overflow_t::Throw)
 
template<typename O , on_overflow_t OtherOnOverflow>
safe_intoperator= (safe_int< O, OtherOnOverflow > const &other) noexcept(OnOverflow !=on_overflow_t::Throw)
 
template<typename O , std::enable_if_t< std::is_integral_v< O >, int > = 0>
 operator O () const noexcept(OnOverflow !=on_overflow_t::Throw)
 
template<typename O , std::enable_if_t< std::is_floating_point_v< O >, int > = 0>
 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: