2006-08-16 16:50:52 +00:00
|
|
|
/*=============================================================================
|
|
|
|
Copyright (c) 2001-2006 Joel de Guzman
|
|
|
|
Copyright (c) 2005-2006 Dan Marsden
|
|
|
|
|
2007-04-02 03:31:13 +00:00
|
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
2007-03-02 10:44:14 +00:00
|
|
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
2006-08-16 16:50:52 +00:00
|
|
|
==============================================================================*/
|
|
|
|
#if !defined(BOOST_FUSION_END_IMPL_24122005_1755)
|
|
|
|
#define BOOST_FUSION_END_IMPL_24122005_1755
|
|
|
|
|
2007-10-20 11:50:27 +00:00
|
|
|
#include <boost/fusion/adapted/struct/struct_iterator.hpp>
|
2006-08-16 16:50:52 +00:00
|
|
|
|
2007-04-02 03:31:13 +00:00
|
|
|
namespace boost { namespace fusion
|
|
|
|
{
|
|
|
|
struct struct_tag;
|
2006-08-16 16:50:52 +00:00
|
|
|
|
|
|
|
namespace extension
|
|
|
|
{
|
|
|
|
template <typename Tag>
|
|
|
|
struct end_impl;
|
|
|
|
|
|
|
|
template <>
|
2007-04-02 03:31:13 +00:00
|
|
|
struct end_impl<struct_tag>
|
2006-08-16 16:50:52 +00:00
|
|
|
{
|
|
|
|
template <typename Sequence>
|
2007-04-02 03:31:13 +00:00
|
|
|
struct apply
|
2006-08-16 16:50:52 +00:00
|
|
|
{
|
2007-04-02 03:31:13 +00:00
|
|
|
typedef struct_iterator<Sequence, 2> type;
|
|
|
|
|
2006-08-16 16:50:52 +00:00
|
|
|
static type
|
|
|
|
call(Sequence& v)
|
|
|
|
{
|
|
|
|
return type(v);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}}
|
|
|
|
|
|
|
|
#endif
|