What is <<?

Oct 31, 2011 at 7:35pm
An inline function is defined as this:
 
inline int pow2(int L) { assert(L>=0); return (1<<L); }


Can anybody let me know that what 1<<L means? What is <<?

Thank you so much!
Oct 31, 2011 at 7:41pm
It is one of bitwise operators http://en.wikipedia.org/wiki/Bitwise_operation
Oct 31, 2011 at 8:00pm
ivanho,

Thank you for reminding on shift operators!

Thx!
Topic archived. No new replies allowed.