1 ///////////////////////////////////////////////////////////////////////////////
2 // foreach.hpp header file
4 // Copyright 2010 Eric Niebler.
5 // Distributed under the Boost Software License, Version 1.0. (See
6 // accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 // See http://www.boost.org/libs/foreach for documentation
11 // Kazutoshi Satoda: for suggesting the need for a _fwd header for foreach's
12 // customization points.
14 #ifndef BOOST_FOREACH_FWD_HPP
15 #define BOOST_FOREACH_FWD_HPP
17 // This must be at global scope, hence the uglified name
18 enum boost_foreach_argument_dependent_lookup_hack
20 boost_foreach_argument_dependent_lookup_hack_value
28 ///////////////////////////////////////////////////////////////////////////////
29 // boost::foreach::tag
31 typedef boost_foreach_argument_dependent_lookup_hack tag;
33 ///////////////////////////////////////////////////////////////////////////////
34 // boost::foreach::is_lightweight_proxy
35 // Specialize this for user-defined collection types if they are inexpensive to copy.
36 // This tells BOOST_FOREACH it can avoid the rvalue/lvalue detection stuff.
38 struct is_lightweight_proxy;
40 ///////////////////////////////////////////////////////////////////////////////
41 // boost::foreach::is_noncopyable
42 // Specialize this for user-defined collection types if they cannot be copied.
43 // This also tells BOOST_FOREACH to avoid the rvalue/lvalue detection stuff.
45 struct is_noncopyable;
47 } // namespace foreach