|
set
Syntax:
#include <boost/bit_logic/assign.hpp> bit_set_functor set ( BitType bit_store ) ; The set function returns a functor object whose operator() member functions are used to set bit values on individual bits, or ranges of bit within its constructed Bit Type. For example: uint16_t test = 0 ; set(test)(15,12)(8)(2)(0) ; cout << hex << test << endl ; This code will output: f015 This syntactic form can also be used for single bit assginments. This code can throw the following exceptions : Exceptions:
|