MCPcopy Create free account
hub / github.com/Constellation/iv / SetToVector

Method SetToVector

iv/lv5/jsarray.h:105–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104 template<typename Iter>
105 void SetToVector(uint32_t index, Iter it, Iter last) {
106 assert(IndexedElements::kMaxVectorSize > index);
107 assert(elements_.vector.size() >=
108 (index + static_cast<std::size_t>(std::distance(it, last))));
109 std::copy(it, last, elements_.vector.begin() + index);
110 }
111
112 template<typename Iter>
113 void SetToMap(uint32_t index, Iter it, Iter last) {

Callers 2

DEFINE_OPCODEFunction · 0.80

Calls 2

sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected