1 | /* |
2 | Copyright (c) Marshall Clow 2010-2012. |
3 | |
4 | Distributed under the Boost Software License, Version 1.0. (See accompanying |
5 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
6 | |
7 | For more information, see http://www.boost.org |
8 | */ |
9 | |
10 | #ifndef BOOST_ALGORITHM_SEARCH_DETAIL_DEBUG_HPP |
11 | #define BOOST_ALGORITHM_SEARCH_DETAIL_DEBUG_HPP |
12 | |
13 | #include <iostream> |
14 | /// \cond DOXYGEN_HIDE |
15 | |
16 | namespace boost { namespace algorithm { namespace detail { |
17 | |
18 | // Debugging support |
19 | template <typename Iter> |
20 | void PrintTable ( Iter first, Iter last ) { |
21 | std::cout << std::distance ( first, last ) << ": { " ; |
22 | for ( Iter iter = first; iter != last; ++iter ) |
23 | std::cout << *iter << " " ; |
24 | std::cout << "}" << std::endl; |
25 | } |
26 | |
27 | }}} |
28 | /// \endcond |
29 | |
30 | #endif // BOOST_ALGORITHM_SEARCH_DETAIL_DEBUG_HPP |
31 | |