boost::xint::options::negative_modulus Struct Reference

Make a fixedlength integer wrap like a built-in unsigned type. More...


Detailed Description

Make a fixedlength integer wrap like a built-in unsigned type.

This option can only be used with fixed-length types. If a calculation would result in a negative number, the number is "wrapped" in the same way that the built-in unsigned types are. For example, decrementing a zero will give you the maximum value for the type.

Definition at line 183 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)