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

Function Cat

src/util/vector.h:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29/** Concatenate two vectors, moving elements. */
30template<typename V>
31inline V Cat(V v1, V&& v2)
32{
33 v1.reserve(v1.size() + v2.size());
34 for (auto& arg : v2) {
35 v1.push_back(std::move(arg));
36 }
37 return v1;
38}
39
40/** Concatenate two vectors. */
41template<typename V>

Callers 8

bumpfee_helperFunction · 0.50
listtransactionsFunction · 0.50
listsinceblockFunction · 0.50
transactions.cppFile · 0.50
BOOST_AUTO_TEST_CASEFunction · 0.50
BOOST_AUTO_TEST_CASEFunction · 0.50
MakeNoLogFileContextFunction · 0.50
BasicTestingSetupMethod · 0.50

Calls 3

reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by 4

BOOST_AUTO_TEST_CASEFunction · 0.40
BOOST_AUTO_TEST_CASEFunction · 0.40
MakeNoLogFileContextFunction · 0.40
BasicTestingSetupMethod · 0.40