MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / copyElements

Function copyElements

CesiumGltf/src/Model.cpp:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73template <typename T>
74size_t copyElements(std::vector<T>& to, std::vector<T>& from) {
75 const size_t out = to.size();
76 to.resize(out + from.size());
77 for (size_t i = 0; i < from.size(); ++i) {
78 to[out + i] = std::move(from[i]);
79 }
80
81 return out;
82}
83
84void updateIndex(int32_t& index, size_t offset) noexcept {
85 if (index == -1) {

Callers 1

mergeMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected