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

Method emplace_back

src/prevector.h:428–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426
427 template<typename... Args>
428 void emplace_back(Args&&... args) {
429 size_type new_size = size() + 1;
430 if (capacity() < new_size) {
431 change_capacity(new_size + (new_size >> 1));
432 }
433 new(item_ptr(size())) T(std::forward<Args>(args)...);
434 _size++;
435 }
436
437 void push_back(const T& value) {
438 emplace_back(value);

Callers 15

rest_getutxosFunction · 0.80
EnqueueMethod · 0.80
StartHTTPServerFunction · 0.80
UnserMethod · 0.80
AddToProcessQueueMethod · 0.80
CreateMethod · 0.80
addUncheckedMethod · 0.80
serviceFlagsToStrFunction · 0.80
ParseGetInfoResultFunction · 0.80
SetGenerateToAddressArgsFunction · 0.80
SendMessagesMethod · 0.80
WrappedGetAddrInfoFunction · 0.80

Calls 1

sizeFunction · 0.70

Tested by 15

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64
add_coinFunction · 0.64
FUZZ_TARGET_INITFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
ForgetTxHashMethod · 0.64
ReceivedInvMethod · 0.64
DisconnectedPeerMethod · 0.64
RequestedTxMethod · 0.64
ReceivedResponseMethod · 0.64
CheckMethod · 0.64