Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are SCARY iterators?

Tags:

c++

c++11

I'm reading the VC11 Blog on VC11's C++11 features when I've come up to the SCARY iterators topic.

What are SCARY iterators and how does this affect my C++ coding experience?

like image 909
Mark Garcia Avatar asked Jan 18 '13 02:01

Mark Garcia


1 Answers

If you're using them, there's no need to get SCAREd... just ignore their SCARY-ness.

If you're making them, that means you have to make your iterators independent of the container's allocator type, and of other generic parameters to the container that don't affect the iterators.

like image 169
user541686 Avatar answered Oct 02 '22 15:10

user541686