- lib:
boost/libs/integer
- repo:
boostorg/integer
- commit:
162e48d1
, 2017-03-31
Header <boost/integer_traits.hpp>
- Inherites from
std::numeric_limits
- Provide static value
const_min
andconst_max
Header <boost/integer.hpp>
Trait classes
int_fast_t<LeastType>
fast
, andtype
to be fast type to storeLeastType
int_t<Bits>
uint_t<Bits>
least
is type at least with required size.fast
is fastest type supports required size.exact
is exact sized type.
int_max_value_t<MaxValue>
int_min_value_t<MinValue>
uint_value_t<MaxValue>
least
is type with size at least support required value.fast
is fastest type supports required value.
Header <boost/integer/integer_mask.hpp>
high_bit_mask_t<Bit>
- Single bit mask at positionBit
least
is least type for mask value.fast
is fast type for mask value.high_bit
, mask value withleast
type.high_bit_fast
, mask value withfast
type.bit_position
, value ofBit
.
low_bits_mask_t<Bits>
- Bit mask of all lowBits
positionsleast
is least type for mask value.fast
is fast type for mask value.sig_bits
, mask value withleast
type.sig_bits_fast
, mask value withfast
type.bit_count
, value ofBits
.
Header <boost/integer/static_log2.hpp>
Trait class static_log2<Value>
.
Header <boost/integer/integer_log2.hpp>
Function integer_log2<T>(T value) -> int
.
Header <boost/integer/static_min_max.hpp>
Trait class static_signed_min<V1,V2>
, static_signed_max<V1,V2>
, static_unsigned_min<V1,V2>
,
and static_unsigned_max<V1,V2>
.
Header <boost/integer/common_factor.hpp>
Trait class static_gcd<V1,V2>
, static_lcm<V1,V2>
(Compile time).
Functors gcd_evaluator<IntType>
and lcm_evaluator<IntType>
(Runtime).
Functions gcd<IntType>(IntType const&, IntType const&) -> IntType
and lcm
.
<boost/config.hpp>
,<boost/detail/workaround.hpp>
<boost/limits.hpp>
,<boost/cstdint.hpp>
<boost/static_assert.hpp>
Language: constexpr
(C++11)
Standard Library: <cstdint>
(C++11)