boost::xint::options::negative_zero Struct Reference

Creates an integer type that forces any negative number to zero. More...


Detailed Description

Creates an integer type that forces any negative number to zero.

This is useful for saturation arithmetic, though you'll have to handle the upper bound yourself.

See also:
http://en.wikipedia.org/wiki/Saturation_arithmetic

Definition at line 204 of file options.hpp.


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

© Copyright Chad Nelson, 2010-2011. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)