TIL you can bitshift in place in C++

For example,

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

0 thoughts on “TIL you can bitshift in place in C++”

Leave a Reply

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