mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-12 00:51:13 -05:00
40 lines
1.3 KiB
C++
Executable file
40 lines
1.3 KiB
C++
Executable file
// Copyright (c) 2019-2022 Dr. Colin Hirsch and Daniel Frey
|
|
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
|
|
|
|
#ifndef TAO_PEGTL_INTERNAL_HAS_MATCH_HPP
|
|
#define TAO_PEGTL_INTERNAL_HAS_MATCH_HPP
|
|
|
|
#include <utility>
|
|
|
|
#include "../apply_mode.hpp"
|
|
#include "../config.hpp"
|
|
#include "../rewind_mode.hpp"
|
|
|
|
namespace TAO_PEGTL_NAMESPACE::internal
|
|
{
|
|
template< typename,
|
|
typename Rule,
|
|
apply_mode A,
|
|
rewind_mode M,
|
|
template< typename... >
|
|
class Action,
|
|
template< typename... >
|
|
class Control,
|
|
typename ParseInput,
|
|
typename... States >
|
|
inline constexpr bool has_match = false;
|
|
|
|
template< typename Rule,
|
|
apply_mode A,
|
|
rewind_mode M,
|
|
template< typename... >
|
|
class Action,
|
|
template< typename... >
|
|
class Control,
|
|
typename ParseInput,
|
|
typename... States >
|
|
inline constexpr bool has_match< decltype( (void)Action< Rule >::template match< Rule, A, M, Action, Control >( std::declval< ParseInput& >(), std::declval< States&& >()... ), bool() ), Rule, A, M, Action, Control, ParseInput, States... > = true;
|
|
|
|
} // namespace TAO_PEGTL_NAMESPACE::internal
|
|
|
|
#endif
|