2018-10-24 17:56:15 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								# Boost.Integer
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 16:33:47 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Boost.Integer, part of collection of the [Boost C++ Libraries ](https://github.com/boostorg ), provides
							 
						 
					
						
							
								
									
										
										
										
											2018-10-24 17:56:15 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								integer type support, particularly helpful in generic programming. It provides the means to select
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								an integer type based upon its properties, like the number of bits or the maximum supported value,
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								as well as compile-time bit mask selection. There is a derivative of `std::numeric_limits`  that provides
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								integral constant expressions for `min`  and `max` ...
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 16:33:47 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Finally, it provides two compile-time algorithms: determining the highest power of two in a
							 
						 
					
						
							
								
									
										
										
										
											2018-10-24 17:56:15 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								compile-time value; and computing min and max of constant expressions.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								### Directories
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*  **doc** - QuickBook documentation sources
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								*  **include** - Interface headers of Boost.Integer
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 16:25:15 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								*  **test** - Boost.Integer unit tests
							 
						 
					
						
							
								
									
										
										
										
											2018-10-24 17:56:15 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								### More information
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 16:33:47 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								*  [Documentation ](https://boost.org/libs/integer )
							 
						 
					
						
							
								
									
										
										
										
											2018-10-24 17:56:15 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								*  [Report bugs ](https://github.com/boostorg/integer/issues/new ). Be sure to mention Boost version, platform and compiler you're using. A small compilable code sample to reproduce the problem is always good as well.
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 16:33:47 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								*  Submit your patches as pull requests against **develop**  branch. Note that by submitting patches you agree to license your modifications under the [Boost Software License, Version 1.0 ](https://www.boost.org/LICENSE_1_0.txt ).
							 
						 
					
						
							
								
									
										
										
										
											2018-10-24 17:56:15 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 16:14:20 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								### Build status
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Master: [](https://ci.appveyor.com/project/Lastique/integer/branch/master) [](https://travis-ci.org/boostorg/integer)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								Develop: [](https://ci.appveyor.com/project/Lastique/integer/branch/develop) [](https://travis-ci.org/boostorg/integer)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-10-24 17:56:15 +03:00 
										
									 
								 
							 
							
								
							 
							
								 
							 
							
							
								### License
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-01 16:33:47 +03:00 
										
									 
								 
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								Distributed under the [Boost Software License, Version 1.0 ](https://www.boost.org/LICENSE_1_0.txt ).