Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/functional/hash/test/hash_no_ext_macro_1.cpp @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 668 bytes
Line 
1
2//  Copyright Daniel James 2006. Use, modification, and distribution are
3//  subject to 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#define HASH_NAMESPACE boost
7#include <boost/functional/hash.hpp>
8#define BOOST_HASH_NO_EXTENSIONS
9#include <boost/functional/hash.hpp>
10#include <boost/detail/lightweight_test.hpp>
11#include <deque>
12#include <cassert>
13
14int main()
15{
16    std::deque<int> x;
17
18    x.push_back(1);
19    x.push_back(2);
20
21    HASH_NAMESPACE::hash<std::deque<int> > hasher;
22    BOOST_TEST(hasher(x) == HASH_NAMESPACE::hash_value(x));
23
24    return boost::report_errors();
25}
Note: See TracBrowser for help on using the repository browser.