alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
unused.hpp
Go to the documentation of this file.
1/* Copyright 2026 René Widera
2 * SPDX-License-Identifier: MPL-2.0
3 */
4
5#pragma once
6
7namespace alpaka
8{
9 /** Utility to mark variables as unused to avoid compiler warnings
10 *
11 * Using '[[maybe_unused]]` in function interfaces for arguments make the interface long and sometimes it is not
12 * important that only the argument type is used within the function and not the instance itself.
13 * This can be used to keep the function interfaces clean and readable.
14 */
15 inline constexpr void unused([[maybe_unused]] auto&&... values)
16 {
17 }
18} // namespace alpaka
main alpaka namespace.
Definition alpaka.hpp:76