Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/boost/spirit/fusion/sequence/append_view.hpp @ 29

Last change on this file since 29 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 991 bytes
Line 
1/*=============================================================================
2    Copyright (c) 2003 Joel de Guzman
3
4    Use, modification and distribution is subject to the Boost Software
5    License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6    http://www.boost.org/LICENSE_1_0.txt)
7==============================================================================*/
8#if !defined(FUSION_SEQUENCE_APPEND_VIEW_HPP)
9#define FUSION_SEQUENCE_APPEND_VIEW_HPP
10
11#include <boost/spirit/fusion/detail/access.hpp>
12#include <boost/spirit/fusion/sequence/joint_view.hpp>
13#include <boost/spirit/fusion/sequence/single_view.hpp>
14
15namespace boost { namespace fusion
16{
17    template <typename View, typename T>
18    struct append_view : joint_view<View, single_view<T> >
19    {
20        append_view(View& view, typename detail::call_param<T>::type val)
21            : joint_view<View, single_view<T> >(view, held)
22            , held(val) {}
23        single_view<T> held;
24    };
25}}
26
27#endif
28
29
Note: See TracBrowser for help on using the repository browser.