|
bit_array Operators
Syntax:
#include <boost/bit_logic/bit_array.hpp> bit_array & operator= ( BitTypeT const & value ) ; bit_array & operator= ( const char * bit_string ) ; bool operator== ( BitTypeT const & cmp_bits ) ; bit_handle operator[] ( std::size_t idx ) ; bool operator[] ( std::size_t idx ) const ; These member For example: bit_array< 10 > simple, difficult ; simple = "1100011000" ; difficult = "1010101010" ; simple = difficult ; cout << simple << endl ; This code would produce this output: 1010101010 Exceptions:
|