(C++) Boost.Integer

February 24, 2017 · View on GitHub

 

 

 

 

 

(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

 

 

 

 

 

 

Contents

  1. 1#include #include int main() { std::cout ::max() ::max() #include &#x3C;limits> #include &#x3C;iostream> #include &#x3C;boost/cstdint.hpp> int main() { std::cout &#x3C;&#x3C; std::numeric_limits&#x3C;int>::max() &#x3C;&#x3C; '\n' &#x3C;&#x3C; std::numeric_limits&#x3C;uint_fast64_t>::max() &#x3C;&#x3C; '\n'; }
  2. 22147483647 18446744073709551615