|
bit_vector Operators
Syntax:
#include <boost/bit_logic/bit_vector.hpp> bit_vector & operator= ( BitTypeT const & value ) ; bit_vector & 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_vector<> simple ( 10 ) , difficult (10) ; simple = "1100011000" ; difficult = "1010101010" ; simple = difficult ; cout << simple << endl ; This code would produce this output: 1010101010 Exceptions:
|