Demonstrating the simplest STL vector constructors: empty vector : vector « Vector « C++
- C++
- Vector
- vector
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
*/
Related examples in the same category