ruihuank的博客通过本文主要向大家介绍了stl等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
template <typename Allocator>
vector<bool, Allocator> {
public:
class reference {...};
reference operator[](size_type n);
...
};
vector<bool> v;
bool *pb = &v[0]; // error! the expression on the right is of type
// vector<bool>::reference*, not bool*