MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / assign

Method assign

src/prevector.h:176–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174
175public:
176 void assign(size_type n, const T& val) {
177 clear();
178 if (capacity() < n) {
179 change_capacity(n);
180 }
181 _size += n;
182 fill(item_ptr(0), n, val);
183 }
184
185 template <std::input_iterator InputIterator>
186 void assign(InputIterator first, InputIterator last) {

Callers 13

rest_getutxosFunction · 0.45
RPCAuthorizedFunction · 0.45
UnserializeV2StreamMethod · 0.45
SetLegacyIPv6Method · 0.45
SetInternalMethod · 0.45
SetTorMethod · 0.45
SetI2PMethod · 0.45
CNetAddrMethod · 0.45
GetStateStatisticsForMethod · 0.45
DecodeBase58Function · 0.45
EncodeBase58Function · 0.45

Calls 1

clearFunction · 0.85

Tested by

no test coverage detected