blob: 622f837887bd226bf0e1a68fd936f45aab8b3197 [file] [log] [blame]
Jeff Thompsona28eed82013-08-22 16:21:10 -07001
2// Copyright (C) 2008-2011 Daniel James.
3// Distributed under the Boost Software License, Version 1.0. (See accompanying
4// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6#ifndef BOOST_UNORDERED_SET_FWD_HPP_INCLUDED
7#define BOOST_UNORDERED_SET_FWD_HPP_INCLUDED
8
9#if defined(_MSC_VER) && (_MSC_VER >= 1020)
10# pragma once
11#endif
12
13#include <ndnboost/config.hpp>
14#include <memory>
15#include <functional>
16#include <ndnboost/functional/hash_fwd.hpp>
17#include <ndnboost/unordered/detail/fwd.hpp>
18
19namespace ndnboost
20{
21 namespace unordered
22 {
23 template <class T,
24 class H = ndnboost::hash<T>,
25 class P = std::equal_to<T>,
26 class A = std::allocator<T> >
27 class unordered_set;
28
29 template <class T, class H, class P, class A>
30 inline bool operator==(unordered_set<T, H, P, A> const&,
31 unordered_set<T, H, P, A> const&);
32 template <class T, class H, class P, class A>
33 inline bool operator!=(unordered_set<T, H, P, A> const&,
34 unordered_set<T, H, P, A> const&);
35 template <class T, class H, class P, class A>
36 inline void swap(unordered_set<T, H, P, A> &m1,
37 unordered_set<T, H, P, A> &m2);
38
39 template <class T,
40 class H = ndnboost::hash<T>,
41 class P = std::equal_to<T>,
42 class A = std::allocator<T> >
43 class unordered_multiset;
44
45 template <class T, class H, class P, class A>
46 inline bool operator==(unordered_multiset<T, H, P, A> const&,
47 unordered_multiset<T, H, P, A> const&);
48 template <class T, class H, class P, class A>
49 inline bool operator!=(unordered_multiset<T, H, P, A> const&,
50 unordered_multiset<T, H, P, A> const&);
51 template <class T, class H, class P, class A>
52 inline void swap(unordered_multiset<T, H, P, A> &m1,
53 unordered_multiset<T, H, P, A> &m2);
54 }
55
56 using ndnboost::unordered::unordered_set;
57 using ndnboost::unordered::unordered_multiset;
58 using ndnboost::unordered::swap;
59 using ndnboost::unordered::operator==;
60 using ndnboost::unordered::operator!=;
61}
62
63#endif