CNL  2.0.2 (development)
Compositional Numeric Library
cnl::saturated_overflow_tag Struct Reference

tag to match the overflow behavior of fundamental arithmetic types More...

#include <cnl/overflow.h>

Inherits cnl::_impl::homogeneous_deduction_tag_base, and cnl::_impl::homogeneous_operator_tag_base.

Detailed Description

tag to match the overflow behavior of fundamental arithmetic types

Arithmetic operations using this tag return the closest representable value when the result exceeds the range of the result type.

See also
overflow_integer, convert, native_overflow_tag, throwing_overflow_tag, trapping_overflow_tag, undefined_overflow_tag