Sha256: 04de8b7838db2710da06997259468ccef1d252b00c14c3d17af1019d3d4282dc
Contents?: true
Size: 1.29 KB
Versions: 10
Compression:
Stored size: 1.29 KB
Contents
// Copyright (c) 2019-2020 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ #ifndef TAO_JSON_PEGTL_INTERNAL_HAS_MATCH_HPP #define TAO_JSON_PEGTL_INTERNAL_HAS_MATCH_HPP #include <utility> #include "../apply_mode.hpp" #include "../config.hpp" #include "../rewind_mode.hpp" namespace TAO_JSON_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_JSON_PEGTL_NAMESPACE::internal #endif
Version data entries
10 entries across 10 versions & 1 rubygems