Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) Boost.Integer

 

Boost.Integer is a Boost library for working with integers.

 

#include <limits>
#include <iostream>
#include <boost/cstdint.hpp>

int main()
{
  std::cout
    << std::numeric_limits<int>::max() << '\n'
    << std::numeric_limits<uint_fast64_t>::max() << '\n';
}

 

Screen output:

 

2147483647
18446744073709551615

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict