| 16 | |
| 17 | template <class Callable> |
| 18 | static inline void CheckError(const bool condition, |
| 19 | const std::string &message, |
| 20 | Callable &&callable) { |
| 21 | if (condition) { |
| 22 | std::forward<Callable>(callable)(); |
| 23 | std::cerr << message << std::endl; |
| 24 | throw std::runtime_error(message); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | |
| 29 | struct ucx_request { |
no outgoing calls
no test coverage detected