public member class
<vector>
std::vector<bool>::reference
class reference;
Reference type
This embedded class is the type returned by members of non-const vector<bool> when directly accessing its elements. It accesses individual bits with an interface that emulates a reference to a bool.
这个内部类是vector<bool>直接访问其元素时返回non-const引用时设计的,它使用模拟成引用的接口访问单个的bits。
Its prototype is:
| |
//翻译的不好的地方请多多指导,可以在下面留言或者点击左上方邮件地址给我发邮件,指出我的错误以及不足,以便我修改,更好的分享给大家,谢谢。
转载请注明出处:http://blog.csdn.net/qq844352155
2014-8-20
于GDUT
本文深入解读了C++中vector<bool>类的reference内部类,包括其原型、构造函数、成员函数及其作用,详细阐述了如何通过reference类直接访问vector<bool>的元素,并模拟引用接口来操作单个的bool值。

1997

被折叠的 条评论
为什么被折叠?



