|
bit_array Constructors
Syntax:
#include <boost/bit_logic/bit_array.hpp> bit_array ( ) ; bit_array ( bool val = false ); bit_array ( bit_array const & copy_bit_array ) ; ~bit_array ( ) ; Template Arguments :
The default bit_array construct a bit_array with all values set to 0. The copy constructor duplicates the original size and contents of the copied vector For example: bit_array<16> simple ( ); cout << simple << endl ; This code would produce this output: 0000000000000000 Now creating a bit_array with values defaulted to all 1's. bit_array<16> ba2 (true); cout << ba2 << endl ; This code would produce this output: 1111111111111111 |