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

Method reserve

src/test/fuzz/prevector.cpp:80–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 void reserve(Size s)
81 {
82 real_vector.reserve(s);
83 assert(real_vector.capacity() >= s);
84 pre_vector.reserve(s);
85 assert(pre_vector.capacity() >= s);
86 }
87
88 void insert(Size position, const T& value)
89 {

Callers 12

BOOST_FIXTURE_TEST_CASEFunction · 0.45
BlockBuildMerkleTreeFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
block_activityMethod · 0.45
test_cache_generationsFunction · 0.45
FUZZ_TARGET_INITFunction · 0.45
BuildHashedSetFunction · 0.45
FUZZ_TARGET_INITFunction · 0.45
FUZZ_TARGETFunction · 0.45
resize_uninitializedMethod · 0.45
FUZZ_TARGETFunction · 0.45

Calls 1

capacityMethod · 0.45

Tested by

no test coverage detected