1 //////////////////////////////////////////////////////////////////////////////
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)
7 // See http://www.boost.org/libs/container for documentation.
9 //////////////////////////////////////////////////////////////////////////////
11 #ifndef BOOST_PRINTCONTAINER_HPP
12 #define BOOST_PRINTCONTAINER_HPP
14 #include <boost/container/detail/config_begin.hpp>
21 //Function to dump data
22 template<class MyBoostCont
24 void PrintContainers(MyBoostCont *boostcont, MyStdCont *stdcont)
26 typename MyBoostCont::iterator itboost = boostcont->begin(), itboostend = boostcont->end();
27 typename MyStdCont::iterator itstd = stdcont->begin(), itstdend = stdcont->end();
29 std::cout << "MyBoostCont" << std::endl;
30 for(; itboost != itboostend; ++itboost){
31 std::cout << *itboost << std::endl;
33 std::cout << "MyStdCont" << std::endl;
35 for(; itstd != itstdend; ++itstd){
36 std::cout << *itstd << std::endl;
41 } //namespace container {
44 #include <boost/container/detail/config_end.hpp>
46 #endif //#ifndef BOOST_PRINTCONTAINER_HPP