fswatch 1.17.1
libfswatch_set.hpp
Go to the documentation of this file.
1/*
2 * Copyright (c) 2014-2021 Enrico M. Crisostomo
3 *
4 * This program is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU General Public License as published by the Free Software
6 * Foundation; either version 3, or (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11 * details.
12 *
13 * You should have received a copy of the GNU General Public License along with
14 * this program. If not, see <http://www.gnu.org/licenses/>.
15 */
26#ifndef LIBFSW_SET_H
27# define LIBFSW_SET_H
28
29# include "libfswatch/libfswatch_config.h"
30
31# if defined(HAVE_UNORDERED_SET)
32# include <unordered_set>
33
34namespace fsw
35{
42 template<typename K>
43 using fsw_hash_set = std::unordered_set<K>;
44}
45
46# else
47# include <set>
48
49namespace fsw
50{
57 template <typename K>
58 using fsw_hash_set = std::set<K>;
59}
60
61# endif
62
63#endif /* LIBFSW_SET_H */
Main namespace of libfswatch.
Definition: event.cpp:24
std::set< K > fsw_hash_set
Default set type used by libfswatch.
Definition: libfswatch_set.hpp:58