1 //////////////////////////////////////////////////////////////////////////////
2 //
3 // (C) Copyright Ion Gaztanaga 2004-2013. Distributed under the Boost
4 // Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // See http://www.boost.org/libs/container for documentation.
8 //
9 //////////////////////////////////////////////////////////////////////////////
10 
11 #ifndef BOOST_PRINTCONTAINER_HPP
12 #define BOOST_PRINTCONTAINER_HPP
13 
14 #include <boost/container/detail/config_begin.hpp>
15 #include <iostream>
16 
17 namespace boost{
18 namespace container {
19 namespace test{
20 
21 //Function to dump data
22 template<class MyBoostCont
23         ,class MyStdCont>
PrintContainers(MyBoostCont * boostcont,MyStdCont * stdcont)24 void PrintContainers(MyBoostCont *boostcont, MyStdCont *stdcont)
25 {
26    typename MyBoostCont::iterator itboost = boostcont->begin(), itboostend = boostcont->end();
27    typename MyStdCont::iterator itstd = stdcont->begin(), itstdend = stdcont->end();
28 
29    std::cout << "MyBoostCont" << std::endl;
30    for(; itboost != itboostend; ++itboost){
31       std::cout << *itboost << std::endl;
32    }
33    std::cout << "MyStdCont" << std::endl;
34 
35    for(; itstd != itstdend; ++itstd){
36       std::cout << *itstd << std::endl;
37    }
38 }
39 
40 }  //namespace test{
41 }  //namespace container {
42 }  //namespace boost{
43 
44 #include <boost/container/detail/config_end.hpp>
45 
46 #endif //#ifndef BOOST_PRINTCONTAINER_HPP
47