1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/stdapis/boost/mpl/aux_/front_impl.hpp Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,41 @@
1.4 +
1.5 +#ifndef BOOST_MPL_AUX_FRONT_IMPL_HPP_INCLUDED
1.6 +#define BOOST_MPL_AUX_FRONT_IMPL_HPP_INCLUDED
1.7 +
1.8 +// Copyright Aleksey Gurtovoy 2000-2004
1.9 +//
1.10 +// Distributed under the Boost Software License, Version 1.0.
1.11 +// (See accompanying file LICENSE_1_0.txt or copy at
1.12 +// http://www.boost.org/LICENSE_1_0.txt)
1.13 +//
1.14 +// See http://www.boost.org/libs/mpl for documentation.
1.15 +
1.16 +// $Source: /cvsroot/boost/boost/boost/mpl/aux_/front_impl.hpp,v $
1.17 +// $Date: 2004/09/02 15:40:43 $
1.18 +// $Revision: 1.4 $
1.19 +
1.20 +#include <boost/mpl/front_fwd.hpp>
1.21 +#include <boost/mpl/begin_end.hpp>
1.22 +#include <boost/mpl/deref.hpp>
1.23 +#include <boost/mpl/aux_/traits_lambda_spec.hpp>
1.24 +
1.25 +namespace boost { namespace mpl {
1.26 +
1.27 +// default implementation; conrete sequences might override it by
1.28 +// specializing either the 'front_impl' or the primary 'front' template
1.29 +
1.30 +template< typename Tag >
1.31 +struct front_impl
1.32 +{
1.33 + template< typename Sequence > struct apply
1.34 + {
1.35 + typedef typename begin<Sequence>::type iter_;
1.36 + typedef typename deref<iter_>::type type;
1.37 + };
1.38 +};
1.39 +
1.40 +BOOST_MPL_ALGORITM_TRAITS_LAMBDA_SPEC(1,front_impl)
1.41 +
1.42 +}}
1.43 +
1.44 +#endif // BOOST_MPL_AUX_FRONT_IMPL_HPP_INCLUDED