mirror of
https://github.com/boostorg/detail.git
synced 2025-08-02 13:54:27 +02:00
Added Boost.Signals library
[SVN r13964]
This commit is contained in:
35
include/boost/visit_each.hpp
Normal file
35
include/boost/visit_each.hpp
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
// Boost.Signals library
|
||||||
|
//
|
||||||
|
// Copyright (C) 2001 Doug Gregor (gregod@cs.rpi.edu)
|
||||||
|
//
|
||||||
|
// Permission to copy, use, sell and distribute this software is granted
|
||||||
|
// provided this copyright notice appears in all copies.
|
||||||
|
// Permission to modify the code and to distribute modified code is granted
|
||||||
|
// provided this copyright notice appears in all copies, and a notice
|
||||||
|
// that the code was modified is included with the copyright notice.
|
||||||
|
//
|
||||||
|
// This software is provided "as is" without express or implied warranty,
|
||||||
|
// and with no claim as to its suitability for any purpose.
|
||||||
|
|
||||||
|
// For more information, see http://www.boost.org
|
||||||
|
|
||||||
|
#ifndef BOOST_VISIT_EACH_HPP
|
||||||
|
#define BOOST_VISIT_EACH_HPP
|
||||||
|
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
|
namespace boost {
|
||||||
|
template<typename Visitor, typename T>
|
||||||
|
inline void visit_each(Visitor& visitor, const T& t, long)
|
||||||
|
{
|
||||||
|
visitor(t);
|
||||||
|
}
|
||||||
|
|
||||||
|
template<typename Visitor, typename T>
|
||||||
|
inline void visit_each(Visitor& visitor, const T& t)
|
||||||
|
{
|
||||||
|
visit_each(visitor, t, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // BOOST_VISIT_EACH_HPP
|
Reference in New Issue
Block a user