Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/algorithm/searching/detail/debugging.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /* 
0002    Copyright (c) Marshall Clow 2010-2012.
0003 
0004    Distributed under the Boost Software License, Version 1.0. (See accompanying
0005    file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 
0007     For more information, see http://www.boost.org
0008 */
0009 
0010 #ifndef BOOST_ALGORITHM_SEARCH_DETAIL_DEBUG_HPP
0011 #define BOOST_ALGORITHM_SEARCH_DETAIL_DEBUG_HPP
0012 
0013 #include <iostream>
0014 /// \cond DOXYGEN_HIDE
0015 
0016 namespace boost { namespace algorithm { namespace detail {
0017 
0018 //  Debugging support
0019     template <typename Iter>
0020     void PrintTable ( Iter first, Iter last ) {
0021         std::cout << std::distance ( first, last ) << ": { ";
0022         for ( Iter iter = first; iter != last; ++iter )
0023             std::cout << *iter << " ";
0024         std::cout << "}" << std::endl;
0025         }
0026     
0027 }}}
0028 /// \endcond
0029 
0030 #endif  //  BOOST_ALGORITHM_SEARCH_DETAIL_DEBUG_HPP