what\'s the best way to perform bitwise operations on vector?
as i understand, vector is a specialisation that uses
Ignoring the title of your question, lets answer this question, instead:
what's the best way to perform bitwise operations on vector?
The best way is to define your vector as vector (or vector, or whichever other integer type you choose), and do your bitwise operations how you normally would for an array of unsigned integers. Things will be much faster this way, and there will be no hidden mechanism.
You can use division (or bitwise operators, if you're slick) to resolve which array index you need to operate against, and for-loops to apply bitwise operations larger than a single element.
Here's a related question: Bit twiddling a lot of bits in C
You will basically be doing these same operations, if and when you decide to wrap vector with your own operators.