• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 ///////////////////////////////////////////////////////////////////////////////
2 // true_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)
7 
8 #ifndef BOOST_XPRESSIVE_DETAIL_CORE_MATCHER_TRUE_MATCHER_HPP_EAN_10_04_2005
9 #define BOOST_XPRESSIVE_DETAIL_CORE_MATCHER_TRUE_MATCHER_HPP_EAN_10_04_2005
10 
11 // MS compatible compilers support #pragma once
12 #if defined(_MSC_VER)
13 # pragma once
14 #endif
15 
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>
19 
20 namespace boost { namespace xpressive { namespace detail
21 {
22 
23     ///////////////////////////////////////////////////////////////////////////////
24     // true_matcher
25     //
26     struct true_matcher
27       : quant_style_assertion
28     {
29         template<typename BidiIter, typename Next>
matchboost::xpressive::detail::true_matcher30         static bool match(match_state<BidiIter> &, Next const &)
31         {
32             return true;
33         }
34     };
35 
36 }}}
37 
38 #endif
39