vector<int> v1; v1.push_back(10); // adds 10 v1.pop_back(); // removes 10
#include <vector> typedef struct test1 { int a; char b; } TOTO; std::vector<TOTO> _v; _v.push_back((TOTO){10, 'a'}); _v[0].a = 101;