cpu.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2023-2025, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 #pragma once
8 
9 namespace raft_proto {
10 namespace detail {
11 template <typename T>
12 struct host_only_throw<T, true> {
13  template <typename... Args>
14  host_only_throw(Args&&... args) noexcept(false)
15  {
16  throw T{std::forward<Args>(args)...};
17  }
18 };
19 } // namespace detail
20 } // namespace raft_proto
Definition: buffer.hpp:24
host_only_throw(Args &&... args) noexcept(false)
Definition: cpu.hpp:14