blob: d58ef5c31cb39506dc70f1fd871be6be12661e6c [file] [log] [blame]
Jeff Thompsona28eed82013-08-22 16:21:10 -07001
2// Copyright 2012 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#include "template.hpp"
7#include <cassert>
8#include <boost/unordered_set.hpp>
9
10int main()
11{
12 typedef my_pair<int, float> pair;
13 ndnboost::unordered_set<pair> pair_set;
14 pair_set.emplace(10, 0.5f);
15
16 assert(pair_set.find(pair(10, 0.5f)) != pair_set.end());
17 assert(pair_set.find(pair(10, 0.6f)) == pair_set.end());
18}