Make shift_left()
a template function so that it can work on more types
than just int
.
For clarity, use operator <<=
where the sign of the shift amount is
already obviously checked.
Make shift_left()
a template function so that it can work on more types
than just int
.
For clarity, use operator <<=
where the sign of the shift amount is
already obviously checked.