What do two left angle brackets mean?

C#.NetListFor LoopBitwise Operators

C# Problem Overview


I saw a loop which I've never seen before:

for (int i = 0; i < (1 << list.Count); i++)

I can't understand what (1 << list.Count) means, maybe someone could explain me this?

C# Solutions


Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser2412672View Question on Stackoverflow