MCPcopy Create free account
hub / github.com/ElementsProject/elements / reserve

Method reserve

src/test/prevector_tests.cpp:88–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87
88 void reserve(Size s) {
89 real_vector.reserve(s);
90 local_check(real_vector.capacity() >= s);
91 pre_vector.reserve(s);
92 local_check(pre_vector.capacity() >= s);
93 test();
94 }
95
96 void insert(Size position, const T& value) {
97 real_vector.insert(real_vector.begin() + position, value);

Callers 2

resize_uninitializedMethod · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45

Calls 1

capacityMethod · 0.45

Tested by

no test coverage detected