Line | |
---|
1 | /*=============================================================================
|
---|
2 | Copyright (c) 1998-2003 Joel de Guzman
|
---|
3 | Copyright (c) 2001 Daniel Nuffer
|
---|
4 | Copyright (c) 2002 Hartmut Kaiser
|
---|
5 | http://spirit.sourceforge.net/
|
---|
6 |
|
---|
7 | Use, modification and distribution is subject to the Boost Software
|
---|
8 | License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
---|
9 | http://www.boost.org/LICENSE_1_0.txt)
|
---|
10 | =============================================================================*/
|
---|
11 | #if !defined(BOOST_SPIRIT_OPTIONAL_IPP)
|
---|
12 | #define BOOST_SPIRIT_OPTIONAL_IPP
|
---|
13 |
|
---|
14 | namespace boost { namespace spirit {
|
---|
15 |
|
---|
16 | ///////////////////////////////////////////////////////////////////////////
|
---|
17 | //
|
---|
18 | // optional class implementation
|
---|
19 | //
|
---|
20 | ///////////////////////////////////////////////////////////////////////////
|
---|
21 | template <typename S>
|
---|
22 | optional<S>
|
---|
23 | operator!(parser<S> const& a)
|
---|
24 | {
|
---|
25 | return optional<S>(a.derived());
|
---|
26 | }
|
---|
27 |
|
---|
28 | }} // namespace boost::spirit
|
---|
29 |
|
---|
30 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.