fix doc example typo
[boost.git] / boost / visit_each.hpp
blob1fc8a50088bfb288b15e9715c2fb3c5a4c4fca26
1 // Boost.Signals library
3 // Copyright Douglas Gregor 2001-2003. Use, modification and
4 // distribution is subject to the Boost Software License, Version
5 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
8 // For more information, see http://www.boost.org/libs/signals
10 #ifndef BOOST_VISIT_EACH_HPP
11 #define BOOST_VISIT_EACH_HPP
13 #include <boost/config.hpp>
15 namespace boost {
16 template<typename Visitor, typename T>
17 inline void visit_each(Visitor& visitor, const T& t, long)
19 visitor(t);
22 template<typename Visitor, typename T>
23 inline void visit_each(Visitor& visitor, const T& t)
25 visit_each(visitor, t, 0);
29 #endif // BOOST_VISIT_EACH_HPP