integer_mask_include_test.cpp 741 B

123456789101112131415161718
  1. // Copyright John Maddock 2009.
  2. // Distributed under the Boost
  3. // Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. #include <boost/integer/integer_mask.hpp> // must be the only #include!
  6. int main()
  7. {
  8. boost::high_bit_mask_t<20>::least l = boost::high_bit_mask_t<20>::high_bit;
  9. boost::high_bit_mask_t<12>::fast f = boost::high_bit_mask_t<12>::high_bit_fast;
  10. l += f + boost::high_bit_mask_t<12>::bit_position;
  11. (void)l;
  12. boost::low_bits_mask_t<20>::least l2 = boost::low_bits_mask_t<20>::sig_bits;
  13. boost::low_bits_mask_t<12>::fast f2 = boost::low_bits_mask_t<12>::sig_bits_fast;
  14. l2 += f2 + boost::low_bits_mask_t<12>::bit_count;
  15. (void)l2;
  16. }