Project revived from Feb2017
[EroSomnia.git] / deps / boost_1_63_0 / boost / xpressive / detail / core / matcher / assert_eos_matcher.hpp
blob76f69badeb34b23b4b6c8c0c08d104f0b88bb270
1 ///////////////////////////////////////////////////////////////////////////////
2 // assert_eos_matcher.hpp
3 //
4 // Copyright 2008 Eric Niebler. Distributed under the Boost
5 // Software License, Version 1.0. (See accompanying file
6 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 #ifndef BOOST_XPRESSIVE_DETAIL_CORE_MATCHER_ASSERT_EOS_MATCHER_HPP_EAN_10_04_2005
9 #define BOOST_XPRESSIVE_DETAIL_CORE_MATCHER_ASSERT_EOS_MATCHER_HPP_EAN_10_04_2005
11 // MS compatible compilers support #pragma once
12 #if defined(_MSC_VER)
13 # pragma once
14 #endif
16 #include <boost/xpressive/detail/detail_fwd.hpp>
17 #include <boost/xpressive/detail/core/quant_style.hpp>
18 #include <boost/xpressive/detail/core/state.hpp>
20 namespace boost { namespace xpressive { namespace detail
23 ///////////////////////////////////////////////////////////////////////////////
24 // assert_eos_matcher
25 // match the end of the sequence (\Z)
26 struct assert_eos_matcher
28 BOOST_XPR_QUANT_STYLE(quant_none, 0, true)
30 template<typename BidiIter, typename Next>
31 static bool match(match_state<BidiIter> &state, Next const &next)
33 return state.eos() && next.match(state);
37 }}}
39 #endif