qxLib
include
qx
algo
filters.h
Go to the documentation of this file.
1
/**
2
3
@file filters.h
4
@author Khrapov
5
@date 3.12.2023
6
@copyright © Nick Khrapov, 2023. All right reserved.
7
8
**/
9
#pragma once
10
11
#include <functional>
12
13
namespace
qx
14
{
15
template
<
class
T>
16
using
filter = std::function<bool(
const
T&)>;
17
18
namespace
filters
19
{
20
21
constexpr
auto
always_true = [](
const
auto
&...)
22
{
23
return
true
;
24
};
25
26
}
// namespace filters
27
28
}
// namespace qx
Generated by
1.9.1