| 231 | /// Return an error status for cancelled operation |
| 232 | template <typename... Args> |
| 233 | static Status Cancelled(Args&&... args) { |
| 234 | return Status::FromArgs(StatusCode::Cancelled, std::forward<Args>(args)...); |
| 235 | } |
| 236 | |
| 237 | /// Return an error status when an index is out of bounds |
| 238 | template <typename... Args> |