libfswatch  1.9.3
libfswatch_set.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014-2015 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 # ifdef HAVE_CONFIG_H
30 # include "libfswatch_config.h"
31 # endif
32 
33 # if defined(HAVE_UNORDERED_SET)
34 # include <unordered_set>
35 
36 namespace fsw
37 {
44  template<typename K>
45  using fsw_hash_set = std::unordered_set<K>;
46 }
47 
48 # else
49 # include <set>
50 
51 namespace fsw
52 {
59  template <typename K>
60  using fsw_hash_set = std::set<K>;
61 }
62 
63 # endif
64 
65 #endif /* LIBFSW_SET_H */
Main namespace of libfswatch.
Definition: event.cpp:23
std::set< K > fsw_hash_set
Default set type used by libfswatch.
Definition: libfswatch_set.hpp:60