MCPcopy Create free account
hub / github.com/bytedance/bolt / slice

Function slice

bolt/exec/WindowBuild.cpp:88–96  ·  view source on GitHub ↗

Returns a [start, end) slice of the 'types' vector.

Source from the content-addressed store, hash-verified

86
87// Returns a [start, end) slice of the 'types' vector.
88std::vector<TypePtr>
89slice(const std::vector<TypePtr>& types, int32_t start, int32_t end) {
90 std::vector<TypePtr> result;
91 result.reserve(end - start);
92 for (auto i = start; i < end; ++i) {
93 result.push_back(types[i]);
94 }
95 return result;
96}
97} // namespace
98
99WindowBuild::WindowBuild(

Callers 1

WindowBuildMethod · 0.70

Calls 2

reserveMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected