TIL you can bitshift in place in C++

For example,

for (size_t i=0; i<nSize/2; i++) {
data_[i]<<=4;
}

Leave a Reply to DebbieJer Cancel reply

Your email address will not be published. Required fields are marked *