alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
include
alpaka
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
7
namespace
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
alpaka
main alpaka namespace.
Definition
alpaka.hpp:76
Generated on
for alpaka by
1.16.1