tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
ignore_unused.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
// SPDX-FileCopyrightText: Copyright (C) 2019 Tobias Hienzsch
3
4
#
ifndef
TETL_UTILITY_IGNORE_UNUSED_HPP
5
#
define
TETL_UTILITY_IGNORE_UNUSED_HPP
6
7
namespace
etl
{
8
9
/// \brief Explicitly ignore arguments or variables.
10
/// \code{.cpp}
11
/// auto main(int argc, char** argv) -> int
12
/// {
13
/// etl::ignore_unused(argc, argv);
14
/// return 0;
15
/// }
16
/// \endcode
17
template
<
typename
... Types>
18
constexpr
auto
ignore_unused
(Types&&...
/*unused*/
) ->
void
19
{
20
}
21
22
}
// namespace etl
23
24
#
endif
// TETL_UTILITY_IGNORE_UNUSED_HPP
etl
Definition
adjacent_find.hpp:9
etl::ignore_unused
constexpr auto ignore_unused(Types &&...) -> void
Explicitly ignore arguments or variables.
Definition
ignore_unused.hpp:18
include
etl
_utility
ignore_unused.hpp
Generated on Sun Sep 7 2025 19:15:18 for tetl by
1.9.8