tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
ignore.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_TUPLE_IGNORE_HPP
4#define TETL_TUPLE_IGNORE_HPP
5
6namespace etl {
7
11inline constexpr struct ignore {
12 template <typename T>
13 constexpr auto operator=(T const& /*unused*/) const -> auto const&
14 {
15 return *this;
16 }
18
19} // namespace etl
20
21#endif // TETL_TUPLE_IGNORE_HPP
Definition adjacent_find.hpp:8
constexpr struct etl::ignore ignore
An object of unspecified type such that any value can be assigned to it with no effect....
Definition ignore.hpp:11
constexpr auto operator=(T const &) const -> auto const &
Definition ignore.hpp:13