halcheck 1.0
Loading...
Searching...
No Matches
tuple.hpp
1#ifndef HALCHECK_LIB_TUPLE_HPP
2#define HALCHECK_LIB_TUPLE_HPP
3
11#include <initializer_list>
12#include <tuple> // IWYU pragma: export
13
14namespace halcheck { namespace lib {
15
21struct ignore_t {
22 template<typename T>
23 const ignore_t &operator=(T &&) const noexcept { // NOLINT: ignore_t cannot be modified
24 return *this;
25 }
26
27 template<typename T>
28 const ignore_t &operator=(const std::initializer_list<T> &) const noexcept { // NOLINT: ignore_t cannot be modified
29 return *this;
30 }
31};
32
38static const lib::ignore_t ignore;
39
40}} // namespace halcheck::lib
41
42#endif
static const lib::ignore_t ignore
A version of std::ignore usable with initializer lists.
Definition tuple.hpp:38
The type of lib::ignore.
Definition tuple.hpp:21