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
7namespace 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
17template <typename... Types>
18constexpr auto ignore_unused(Types&&... /*unused*/) -> void
19{
20}
21
22} // namespace etl
23
24#endif // TETL_UTILITY_IGNORE_UNUSED_HPP
Definition adjacent_find.hpp:9
constexpr auto ignore_unused(Types &&...) -> void
Explicitly ignore arguments or variables.
Definition ignore_unused.hpp:18