1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2010 Monty Taylor
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
* Includes either std::unordered_set if we have it, or boost::unordered_set
24
* if we don't. Puts them into the drizzled namespace
27
#ifndef DRIZZLED_UNORDERED_SET_H
28
#define DRIZZLED_UNORDERED_SET_H
30
#ifdef HAVE_STD_UNORDERED_SET
31
# include <unordered_set>
33
# ifdef HAVE_TR1_UNORDERED_SET
34
# include <tr1/unordered_set>
36
# ifdef HAVE_BOOST_UNORDERED_SET
37
# include <boost/unordered_set.hpp>
40
# include <functional>
47
#ifdef HAVE_STD_UNORDERED_SET
48
using std::unordered_set;
51
# ifdef HAVE_TR1_UNORDERED_SET
52
using std::tr1::unordered_set;
55
# ifdef HAVE_BOOST_UNORDERED_SET
56
using boost::unordered_set;
60
template <typename Key,
61
typename HashFcn = std::less<Key>,
62
typename EqualKey = int >
64
public std::set<Key, HashFcn>
71
# endif /* HAVE_BOOST_UNORDERED_SET else */
72
# endif /* HAVE_TR1_UNORDERED_SET else */
73
#endif /* HAVE_STD_UNORDERED_SET else */
76
} /* namespace drizzled */
78
#endif /* DRIZZLED_UNORDERED_SET_H */