什么是SCARY迭代器? [英] What are SCARY iterators?
本文介绍了什么是SCARY迭代器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在阅读VC11的C +上的 VC11博客,
I'm reading the VC11 Blog on VC11's C++11 features when I've come up to the SCARY iterators topic.
什么是SCARY迭代器,它如何影响我的C ++编码体验?
推荐答案
如果您使用,则无需获取SCAREd ...忽略它们的SCARY值。
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.
这篇关于什么是SCARY迭代器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文