mirror of
https://github.com/boostorg/unordered.git
synced 2025-05-10 07:34:00 +00:00
Merged revisions 42157-42182 via svnmerge from https://svn.boost.org/svn/boost/branches/unordered/dev ........ r42157 | danieljames | 2007-12-18 23:26:06 +0000 (Tue, 18 Dec 2007) | 1 line Tweak the function specifiers a tad bit. ........ r42158 | danieljames | 2007-12-18 23:30:52 +0000 (Tue, 18 Dec 2007) | 1 line No need to create a node_constructor for every iteration. ........ r42159 | danieljames | 2007-12-18 23:50:29 +0000 (Tue, 18 Dec 2007) | 1 line Pull another node_constructor out of a loop. ........ r42172 | danieljames | 2007-12-19 17:51:41 +0000 (Wed, 19 Dec 2007) | 1 line Remove unrequired include. ........ r42181 | danieljames | 2007-12-19 22:37:34 +0000 (Wed, 19 Dec 2007) | 2 lines Move the unordered library into 'branches' now that it has been accepted. ........ r42182 | danieljames | 2007-12-19 22:39:54 +0000 (Wed, 19 Dec 2007) | 4 lines Actually, there are some things in the unordered code that aren't ready for trunk, so I'll rename the branch and create another one to be added to trunk later. ........ [SVN r42190]
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
|
|
// Copyright 2005-2007 Daniel James.
|
|
// 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)
|
|
|
|
#if !defined(BOOST_UNORDERED_TEST_HELPERS_INPUT_ITERATOR_HEADER)
|
|
#define BOOST_UNORDERED_TEST_HELPERS_INPUT_ITERATOR_HEADER
|
|
|
|
#include <boost/iterator_adaptors.hpp>
|
|
|
|
namespace test
|
|
{
|
|
template <class Iterator>
|
|
struct input_iterator_adaptor
|
|
: boost::iterator_adaptor<
|
|
input_iterator_adaptor<Iterator>, Iterator,
|
|
boost::use_default, std::input_iterator_tag>
|
|
{
|
|
typedef boost::iterator_adaptor<
|
|
input_iterator_adaptor<Iterator>, Iterator,
|
|
boost::use_default, std::input_iterator_tag> base;
|
|
|
|
explicit input_iterator_adaptor(Iterator it = Iterator())
|
|
: base(it) {}
|
|
};
|
|
|
|
template <class Iterator>
|
|
input_iterator_adaptor<Iterator> input_iterator(Iterator it)
|
|
{
|
|
return input_iterator_adaptor<Iterator>(it);
|
|
}
|
|
}
|
|
|
|
#endif
|
|
|