Returns a [start, end) slice of the 'types' vector.
| 86 | |
| 87 | // Returns a [start, end) slice of the 'types' vector. |
| 88 | std::vector<TypePtr> |
| 89 | slice(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 | |
| 99 | WindowBuild::WindowBuild( |
no test coverage detected