libfswatch
1.9.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
libfswatch
c++
libfswatch_map.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_MAP_H
27
# define LIBFSW_MAP_H
28
29
# ifdef HAVE_CONFIG_H
30
# include "libfswatch_config.h"
31
# endif
32
33
# if defined(HAVE_UNORDERED_MAP)
34
# include <unordered_map>
35
36
namespace
fsw
37
{
44
template
<
typename
K,
typename
V>
45
using
fsw_hash_map
= std::unordered_map<K, V>;
46
}
47
48
# else
49
# include <map>
50
51
namespace
fsw
52
{
59
template
<
typename
K,
typename
V>
60
using
fsw_hash_map
= std::map<K, V>;
61
}
62
63
# endif
64
65
#endif
/* LIBFSW_MAP_H */
fsw
Main namespace of libfswatch.
Definition:
event.cpp:23
fsw::fsw_hash_map
std::map< K, V > fsw_hash_map
Default associative container type used by libfswatch.
Definition:
libfswatch_map.hpp:60
Generated by
1.8.10