posts with tag C++
vector of bool in C++
2017-07-12
C++ is an evolvement of C with shared design principles of performance first, yet with consideration of convenience at the perspective of programmer. However, the former generally requires to implement the most suitable and dedicated data structure (that is to optimize) for common cases. The specialization results in inconsistency. This post is mainly about the vector of bool, which is a specialization of vector according to the standard template library (STL) of C++.