Demonstrating the simplest STL vector constructors: empty vector
#include <iostream> #include <cassert> #include <vector> using namespace std; int main() { vector<char> vector1; cout << vector1.size(); return 0; } /* 0 */