fswatch
1.17.1
libfswatch
c++
libfswatch_map.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_MAP_H
27
# define LIBFSW_MAP_H
28
29
#include "libfswatch/libfswatch_config.h"
30
31
# ifdef HAVE_UNORDERED_MAP
32
# include <unordered_map>
33
34
namespace
fsw
35
{
42
template
<
typename
K,
typename
V>
43
using
fsw_hash_map
= std::unordered_map<K, V>;
44
}
45
46
# else
47
# include <map>
48
49
namespace
fsw
50
{
57
template
<
typename
K,
typename
V>
58
using
fsw_hash_map
= std::map<K, V>;
59
}
60
61
# endif
62
63
#endif
/* LIBFSW_MAP_H */
fsw
Main namespace of libfswatch.
Definition:
event.cpp:24
fsw::fsw_hash_map
std::map< K, V > fsw_hash_map
Default associative container type used by libfswatch.
Definition:
libfswatch_map.hpp:58
Generated by
1.9.3