Files
boost_mpl/include/boost/mpl/deref.hpp
T

42 lines
943 B
C++
Raw Normal View History

2003-02-25 11:51:56 +00:00
#ifndef BOOST_MPL_DEREF_HPP_INCLUDED
#define BOOST_MPL_DEREF_HPP_INCLUDED
2004-09-02 15:41:37 +00:00
// Copyright Aleksey Gurtovoy 2002-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/mpl for documentation.
2003-02-25 11:51:56 +00:00
2004-09-02 15:41:37 +00:00
// $Source$
// $Date$
// $Revision$
#include <boost/mpl/aux_/msvc_type.hpp>
#include <boost/mpl/aux_/na_spec.hpp>
#include <boost/mpl/aux_/lambda_support.hpp>
#include <boost/mpl/aux_/config/eti.hpp>
namespace boost { namespace mpl {
2003-02-25 11:51:56 +00:00
template<
2004-09-02 15:41:37 +00:00
typename BOOST_MPL_AUX_NA_PARAM(Iterator)
2003-02-25 11:51:56 +00:00
>
struct deref
{
2004-09-02 15:41:37 +00:00
#if !defined(BOOST_MPL_CFG_MSVC_70_ETI_BUG)
2003-02-25 11:51:56 +00:00
typedef typename Iterator::type type;
2004-09-02 15:41:37 +00:00
#else
typedef typename aux::msvc_type<Iterator>::type type;
#endif
2003-02-25 11:51:56 +00:00
BOOST_MPL_AUX_LAMBDA_SUPPORT(1,deref,(Iterator))
};
2004-09-02 15:41:37 +00:00
BOOST_MPL_AUX_NA_SPEC(1, deref)
2003-02-25 11:51:56 +00:00
2004-09-02 15:41:37 +00:00
}}
2003-02-25 11:51:56 +00:00
#endif // BOOST_MPL_DEREF_HPP_INCLUDED