Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Boost.Signals library
0002 
0003 // Copyright Douglas Gregor 2001-2003. Use, modification and
0004 // distribution is subject to the Boost Software License, Version
0005 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0006 // http://www.boost.org/LICENSE_1_0.txt)
0007 
0008 // For more information, see http://www.boost.org/libs/signals
0009 
0010 #ifndef BOOST_VISIT_EACH_HPP
0011 #define BOOST_VISIT_EACH_HPP
0012 
0013 namespace boost {
0014   template<typename Visitor, typename T>
0015   inline void visit_each(Visitor& visitor, const T& t, long)
0016   {
0017     visitor(t);
0018   }
0019 
0020   template<typename Visitor, typename T>
0021   inline void visit_each(Visitor& visitor, const T& t)
0022   {
0023     visit_each(visitor, t, 0);
0024   }
0025 }
0026 
0027 #endif // BOOST_VISIT_EACH_HPP