]> git.lyx.org Git - lyx.git/blob - boost/boost/visit_each.hpp
leave formula when pressing end at the end of a formula (and similarly
[lyx.git] / boost / boost / visit_each.hpp
1 // Boost.Signals library
2 //
3 // Copyright (C) 2001 Doug Gregor (gregod@cs.rpi.edu)
4 //
5 // Permission to copy, use, sell and distribute this software is granted
6 // provided this copyright notice appears in all copies.
7 // Permission to modify the code and to distribute modified code is granted
8 // provided this copyright notice appears in all copies, and a notice
9 // that the code was modified is included with the copyright notice.
10 //
11 // This software is provided "as is" without express or implied warranty,
12 // and with no claim as to its suitability for any purpose.
13  
14 // For more information, see http://www.boost.org
15
16 #ifndef BOOST_VISIT_EACH_HPP
17 #define BOOST_VISIT_EACH_HPP
18
19 #include <boost/config.hpp>
20
21 namespace boost {
22   template<typename Visitor, typename T>
23   inline void visit_each(Visitor& visitor, const T& t, long)
24   {
25     visitor(t);
26   }
27
28   template<typename Visitor, typename T>
29   inline void visit_each(Visitor& visitor, const T& t)
30   {
31     visit_each(visitor, t, 0);
32   }
33 }
34
35 #endif // BOOST_VISIT_EACH_HPP