~ubuntu-branches/ubuntu/wily/bombono-dvd/wily

« back to all changes in this revision

Viewing changes to libs/boost-lib/boost/visit_each.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-11-04 11:46:25 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20101104114625-8xfdhvhpsm51i0nu
Tags: upstream-0.8.0
ImportĀ upstreamĀ versionĀ 0.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Boost.Signals library
 
2
 
 
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)
 
7
 
 
8
// For more information, see http://www.boost.org/libs/signals
 
9
 
 
10
#ifndef BOOST_VISIT_EACH_HPP
 
11
#define BOOST_VISIT_EACH_HPP
 
12
 
 
13
#include <boost/config.hpp>
 
14
 
 
15
namespace boost {
 
16
  template<typename Visitor, typename T>
 
17
  inline void visit_each(Visitor& visitor, const T& t, long)
 
18
  {
 
19
    visitor(t);
 
20
  }
 
21
 
 
22
  template<typename Visitor, typename T>
 
23
  inline void visit_each(Visitor& visitor, const T& t)
 
24
  {
 
25
    visit_each(visitor, t, 0);
 
26
  }
 
27
}
 
28
 
 
29
#endif // BOOST_VISIT_EACH_HPP