1 2 // Copyright (C) 2008-2018 Lorenzo Caminiti 3 // Distributed under the Boost Software License, Version 1.0 (see accompanying 4 // file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt). 5 // See: http://www.boost.org/doc/libs/release/libs/contract/doc/html/index.html 6 7 //[cline90_vector_main 8 #include "vector.hpp" 9 #include <cassert> 10 main()11int main() { 12 vector<int> v (3); 13 assert(v.size() == 3); 14 15 v[0] = 123; 16 v.resize(2); 17 assert(v[0] == 123); 18 assert(v.size() == 2); 19 20 return 0; 21 } 22 //] 23 24