halcheck
1.0
Loading...
Searching...
No Matches
include
halcheck
lib
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
14
namespace
halcheck {
namespace
lib {
15
21
struct
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
38
static
const
lib::ignore_t
ignore
;
39
40
}}
// namespace halcheck::lib
41
42
#endif
halcheck::lib::ignore
static const lib::ignore_t ignore
A version of std::ignore usable with initializer lists.
Definition
tuple.hpp:38
initializer_list
halcheck::lib::ignore_t
The type of lib::ignore.
Definition
tuple.hpp:21
tuple
Generated by
1.12.0