| 302 | } |
| 303 | |
| 304 | index_type NormalizeIndex(index_type index, std::size_t count) |
| 305 | { |
| 306 | if (index < 0) { |
| 307 | index = static_cast<index_type>(count) + index; |
| 308 | } |
| 309 | if (index < 0 || count <= static_cast<std::size_t>(index)) { |
| 310 | throw transform_error(cmStrCat( |
| 311 | "sub-command TRANSFORM, selector ", this->Tag, ", index: ", index, |
| 312 | " out of range (-", count, ", ", count - 1, ").")); |
| 313 | } |
| 314 | return index; |
| 315 | } |
| 316 | }; |
| 317 | class TransformSelectorAt : public TransformSelectorIndexes |
| 318 | { |
no test coverage detected