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/sequence/joint_view.hpp>
|
---|
12 | #include <boost/spirit/fusion/sequence/single_view.hpp>
|
---|
13 |
|
---|
14 | namespace boost { namespace fusion
|
---|
15 | {
|
---|
16 | template <typename View, typename T>
|
---|
17 | struct append_view : joint_view<View, single_view<T> >
|
---|
18 | {
|
---|
19 | append_view(View& view, T const& val)
|
---|
20 | : joint_view<View, single_view<T> >(view, held)
|
---|
21 | , held(val) {}
|
---|
22 | single_view<T> held;
|
---|
23 | };
|
---|
24 | }}
|
---|
25 |
|
---|
26 | #endif
|
---|
27 |
|
---|
28 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.