epoc32/include/stdapis/boost/visit_each.hpp
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/stdapis/boost/visit_each.hpp	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,29 @@
     1.4 +// Boost.Signals library
     1.5 +
     1.6 +// Copyright Douglas Gregor 2001-2003. Use, modification and
     1.7 +// distribution is subject to the Boost Software License, Version
     1.8 +// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
     1.9 +// http://www.boost.org/LICENSE_1_0.txt)
    1.10 +
    1.11 +// For more information, see http://www.boost.org/libs/signals
    1.12 +
    1.13 +#ifndef BOOST_VISIT_EACH_HPP
    1.14 +#define BOOST_VISIT_EACH_HPP
    1.15 +
    1.16 +#include <boost/config.hpp>
    1.17 +
    1.18 +namespace boost {
    1.19 +  template<typename Visitor, typename T>
    1.20 +  inline void visit_each(Visitor& visitor, const T& t, long)
    1.21 +  {
    1.22 +    visitor(t);
    1.23 +  }
    1.24 +
    1.25 +  template<typename Visitor, typename T>
    1.26 +  inline void visit_each(Visitor& visitor, const T& t)
    1.27 +  {
    1.28 +    visit_each(visitor, t, 0);
    1.29 +  }
    1.30 +}
    1.31 +
    1.32 +#endif // BOOST_VISIT_EACH_HPP