Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/visit_each.hpp @ 125:34e428693f5d vext
Vext -> Repoint
author | Chris Cannam |
---|---|
date | Thu, 14 Jun 2018 11:15:39 +0100 |
parents | c530137014c0 |
children |
rev | line source |
---|---|
Chris@16 | 1 // Boost.Signals library |
Chris@16 | 2 |
Chris@16 | 3 // Copyright Douglas Gregor 2001-2003. Use, modification and |
Chris@16 | 4 // distribution is subject to the Boost Software License, Version |
Chris@16 | 5 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
Chris@16 | 6 // http://www.boost.org/LICENSE_1_0.txt) |
Chris@16 | 7 |
Chris@16 | 8 // For more information, see http://www.boost.org/libs/signals |
Chris@16 | 9 |
Chris@16 | 10 #ifndef BOOST_VISIT_EACH_HPP |
Chris@16 | 11 #define BOOST_VISIT_EACH_HPP |
Chris@16 | 12 |
Chris@16 | 13 namespace boost { |
Chris@16 | 14 template<typename Visitor, typename T> |
Chris@16 | 15 inline void visit_each(Visitor& visitor, const T& t, long) |
Chris@16 | 16 { |
Chris@16 | 17 visitor(t); |
Chris@16 | 18 } |
Chris@16 | 19 |
Chris@16 | 20 template<typename Visitor, typename T> |
Chris@16 | 21 inline void visit_each(Visitor& visitor, const T& t) |
Chris@16 | 22 { |
Chris@16 | 23 visit_each(visitor, t, 0); |
Chris@16 | 24 } |
Chris@16 | 25 } |
Chris@16 | 26 |
Chris@16 | 27 #endif // BOOST_VISIT_EACH_HPP |