2006-02-05 14:02:28 +00:00
|
|
|
|
Merge hash and unordered changes.
Remove deprecated headers, move hash_fwd.hpp into hash subdirectory. And
several minor internal changes.
Mostly minor internal details.
Merged revisions 51262-51263,51407-51409,51504-51505,51644-51646,51667 via svnmerge from
https://svn.boost.org/svn/boost/trunk
........
r51262 | danieljames | 2009-02-15 19:32:04 +0000 (Sun, 15 Feb 2009) | 1 line
Use the new 'boost:' links for the hash, unordered and quickbook documentation.
........
r51263 | danieljames | 2009-02-15 19:32:19 +0000 (Sun, 15 Feb 2009) | 2 lines
Don't copy images for the standalone hash and unordered documentation, was only
really required before the libraries were integrated into boost.
........
r51407 | danieljames | 2009-02-22 23:49:51 +0000 (Sun, 22 Feb 2009) | 1 line
Fix the hash dirname.
........
r51408 | danieljames | 2009-02-22 23:50:04 +0000 (Sun, 22 Feb 2009) | 1 line
Make copy_buckets and move_buckets member functions - so that calling them is a bit simpler.
........
r51409 | danieljames | 2009-02-22 23:50:20 +0000 (Sun, 22 Feb 2009) | 1 line
Move some of the data structure classes out of hash table data.
........
r51504 | danieljames | 2009-03-01 14:15:09 +0000 (Sun, 01 Mar 2009) | 1 line
Add missing return for operator=.
........
r51505 | danieljames | 2009-03-01 14:15:39 +0000 (Sun, 01 Mar 2009) | 3 lines
Make the sort stable.
Doesn't really matter, but it might as well be.
........
r51644 | danieljames | 2009-03-08 09:44:51 +0000 (Sun, 08 Mar 2009) | 1 line
Detab.
........
r51645 | danieljames | 2009-03-08 09:45:11 +0000 (Sun, 08 Mar 2009) | 4 lines
Move hash_fwd into the hash subdirectory.
I should have done this in the last release. But now all of the hash
implementation is in the hash subdirectory.
........
r51646 | danieljames | 2009-03-08 09:45:30 +0000 (Sun, 08 Mar 2009) | 3 lines
Remove deprecated headers.
Fixes #2412.
........
r51667 | danieljames | 2009-03-09 20:56:23 +0000 (Mon, 09 Mar 2009) | 1 line
Update copyright dates in hash and unordered.
........
[SVN r51729]
2009-03-11 22:51:09 +00:00
|
|
|
// Copyright 2005-2009 Daniel James.
|
2007-11-25 18:38:02 +00:00
|
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
2006-02-05 14:02:28 +00:00
|
|
|
|
2005-09-19 20:39:57 +00:00
|
|
|
#include <boost/functional/detail/container_fwd.hpp>
|
|
|
|
|
|
2005-09-27 19:46:04 +00:00
|
|
|
#if BOOST_WORKAROUND(__GNUC__, < 3) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
|
|
|
|
|
template <class charT, class Allocator>
|
2006-02-05 14:00:23 +00:00
|
|
|
static void test(std::basic_string<charT, std::string_char_traits<charT>, Allocator> const&)
|
2005-09-19 20:39:57 +00:00
|
|
|
{
|
|
|
|
|
}
|
2005-09-27 19:46:04 +00:00
|
|
|
#else
|
|
|
|
|
template <class charT, class Allocator>
|
2006-02-05 14:00:23 +00:00
|
|
|
static void test(std::basic_string<charT, std::char_traits<charT>, Allocator> const&)
|
2005-09-27 19:46:04 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
#endif
|
2005-09-19 20:39:57 +00:00
|
|
|
|
|
|
|
|
template <class T, class Allocator>
|
2006-02-05 14:00:23 +00:00
|
|
|
static void test(std::deque<T, Allocator> const&)
|
2005-09-19 20:39:57 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <class T, class Allocator>
|
2006-02-05 14:00:23 +00:00
|
|
|
static void test(std::list<T, Allocator> const&)
|
2005-09-19 20:39:57 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <class T, class Allocator>
|
2006-02-05 14:00:23 +00:00
|
|
|
static void test(std::vector<T, Allocator> const&)
|
2005-09-19 20:39:57 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <class Key, class T, class Compare, class Allocator>
|
2006-02-05 14:00:23 +00:00
|
|
|
static void test(std::map<Key, T, Compare, Allocator> const&)
|
2005-09-19 20:39:57 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <class Key, class T, class Compare, class Allocator>
|
2006-02-05 14:00:23 +00:00
|
|
|
static void test(std::multimap<Key, T, Compare, Allocator> const&)
|
2005-09-19 20:39:57 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <class Key, class Compare, class Allocator>
|
2006-02-05 14:00:23 +00:00
|
|
|
static void test(std::set<Key, Compare, Allocator> const&)
|
2005-09-19 20:39:57 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <class Key, class Compare, class Allocator>
|
2006-02-05 14:00:23 +00:00
|
|
|
static void test(std::multiset<Key, Compare, Allocator> const&)
|
2005-09-19 20:39:57 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <std::size_t N>
|
2006-02-05 14:00:23 +00:00
|
|
|
static void test(std::bitset<N> const&)
|
2005-09-19 20:39:57 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template <class T>
|
2006-02-05 14:00:23 +00:00
|
|
|
static void test(std::complex<T> const&)
|
2005-09-19 20:39:57 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2006-02-05 14:11:59 +00:00
|
|
|
template <class X, class Y>
|
|
|
|
|
static void test(std::pair<X, Y> const&)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2005-09-19 20:39:57 +00:00
|
|
|
#include <deque>
|
|
|
|
|
#include <list>
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <map>
|
|
|
|
|
#include <set>
|
|
|
|
|
#include <bitset>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <complex>
|
2006-02-05 14:11:59 +00:00
|
|
|
#include <utility>
|
2005-09-19 20:39:57 +00:00
|
|
|
|
2008-07-19 09:02:10 +00:00
|
|
|
int main()
|
2005-09-19 20:39:57 +00:00
|
|
|
{
|
|
|
|
|
std::deque<int> x1;
|
|
|
|
|
std::list<std::string> x2;
|
|
|
|
|
std::vector<float> x3;
|
|
|
|
|
std::vector<bool> x4;
|
|
|
|
|
std::map<int, int> x5;
|
|
|
|
|
std::multimap<float, int*> x6;
|
|
|
|
|
std::set<std::string> x7;
|
|
|
|
|
std::multiset<std::vector<int> > x8;
|
|
|
|
|
std::bitset<10> x9;
|
|
|
|
|
std::string x10;
|
|
|
|
|
std::complex<double> x11;
|
2006-02-05 14:11:59 +00:00
|
|
|
std::pair<std::list<int>, char***> x12;
|
2005-09-19 20:39:57 +00:00
|
|
|
|
|
|
|
|
test(x1);
|
|
|
|
|
test(x2);
|
|
|
|
|
test(x3);
|
|
|
|
|
test(x4);
|
|
|
|
|
test(x5);
|
|
|
|
|
test(x6);
|
|
|
|
|
test(x7);
|
|
|
|
|
test(x8);
|
|
|
|
|
test(x9);
|
|
|
|
|
test(x10);
|
|
|
|
|
test(x11);
|
2006-02-05 14:11:59 +00:00
|
|
|
test(x12);
|
2005-10-05 20:52:00 +00:00
|
|
|
|
|
|
|
|
return 0;
|
2005-09-19 20:39:57 +00:00
|
|
|
}
|