C++11 has implemented data()
member function on std::vector
, which gives you a pointer to the memory array. Does this mean the template specialization std::vector<bool>
have this member as well? Since this specialization doesn't store the data in terms of bool *
, what kind of behavior can you expect from calling data()
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…