Namespaces
Variants
Views
Actions

Talk:cpp/container/list

From cppreference.com

does list<structure> var [10] work ? as [] operator is not available for lists but to my surprise it works well.

That expression doesnt use operator [] to index into a single list -- it creates an array of 10 lists. Nate 04:35, 16 March 2012 (PDT)