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

Method assign

src/prevector.h:218–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216
217public:
218 void assign(size_type n, const T& val) {
219 clear();
220 if (capacity() < n) {
221 change_capacity(n);
222 }
223 _size += n;
224 fill(item_ptr(0), n, val);
225 }
226
227 template<typename InputIterator>
228 void assign(InputIterator first, InputIterator last) {

Callers 13

rest_getutxosFunction · 0.45
UnserializeV2StreamMethod · 0.45
UnserializeMethod · 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