Blame boost/foreach_fwd.hpp

Packit 58578d
///////////////////////////////////////////////////////////////////////////////
Packit 58578d
// foreach.hpp header file
Packit 58578d
//
Packit 58578d
// Copyright 2010 Eric Niebler.
Packit 58578d
// Distributed under the Boost Software License, Version 1.0. (See
Packit 58578d
// accompanying file LICENSE_1_0.txt or copy at
Packit 58578d
// http://www.boost.org/LICENSE_1_0.txt)
Packit 58578d
// See http://www.boost.org/libs/foreach for documentation
Packit 58578d
//
Packit 58578d
// Credits:
Packit 58578d
// Kazutoshi Satoda: for suggesting the need for a _fwd header for foreach's
Packit 58578d
//                      customization points.
Packit 58578d
Packit 58578d
#ifndef BOOST_FOREACH_FWD_HPP
Packit 58578d
#define BOOST_FOREACH_FWD_HPP
Packit 58578d
Packit 58578d
// This must be at global scope, hence the uglified name
Packit 58578d
enum boost_foreach_argument_dependent_lookup_hack
Packit 58578d
{
Packit 58578d
    boost_foreach_argument_dependent_lookup_hack_value
Packit 58578d
};
Packit 58578d
Packit 58578d
namespace boost
Packit 58578d
{
Packit 58578d
Packit 58578d
namespace foreach
Packit 58578d
{
Packit 58578d
    ///////////////////////////////////////////////////////////////////////////////
Packit 58578d
    // boost::foreach::tag
Packit 58578d
    //
Packit 58578d
    typedef boost_foreach_argument_dependent_lookup_hack tag;
Packit 58578d
Packit 58578d
    ///////////////////////////////////////////////////////////////////////////////
Packit 58578d
    // boost::foreach::is_lightweight_proxy
Packit 58578d
    //   Specialize this for user-defined collection types if they are inexpensive to copy.
Packit 58578d
    //   This tells BOOST_FOREACH it can avoid the rvalue/lvalue detection stuff.
Packit 58578d
    template<typename T>
Packit 58578d
    struct is_lightweight_proxy;
Packit 58578d
Packit 58578d
    ///////////////////////////////////////////////////////////////////////////////
Packit 58578d
    // boost::foreach::is_noncopyable
Packit 58578d
    //   Specialize this for user-defined collection types if they cannot be copied.
Packit 58578d
    //   This also tells BOOST_FOREACH to avoid the rvalue/lvalue detection stuff.
Packit 58578d
    template<typename T>
Packit 58578d
    struct is_noncopyable;
Packit 58578d
Packit 58578d
} // namespace foreach
Packit 58578d
Packit 58578d
} // namespace boost
Packit 58578d
Packit 58578d
#endif