Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 10:01:53

0001 /*=============================================================================
0002     Copyright (c) 1998-2003 Joel de Guzman
0003     Copyright (c) 2001 Daniel Nuffer
0004     Copyright (c) 2002 Hartmut Kaiser
0005     http://spirit.sourceforge.net/
0006 
0007     Use, modification and distribution is subject to the Boost Software
0008     License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0009     http://www.boost.org/LICENSE_1_0.txt)
0010 =============================================================================*/
0011 #if !defined(BOOST_SPIRIT_OPTIONAL_IPP)
0012 #define BOOST_SPIRIT_OPTIONAL_IPP
0013 
0014 namespace boost { namespace spirit {
0015 
0016 BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
0017 
0018     ///////////////////////////////////////////////////////////////////////////
0019     //
0020     //  optional class implementation
0021     //
0022     ///////////////////////////////////////////////////////////////////////////
0023     template <typename S>
0024     optional<S>
0025     operator!(parser<S> const& a)
0026     {
0027         return optional<S>(a.derived());
0028     }
0029 
0030 BOOST_SPIRIT_CLASSIC_NAMESPACE_END
0031 
0032 }} // namespace boost::spirit
0033 
0034 #endif