geode/codegen/Broma/PEGTL-3.2.7/include/tao/pegtl/internal/has_apply.hpp

22 lines
694 B
C++
Raw Normal View History

2022-07-30 12:24:03 -04:00
// Copyright (c) 2017-2022 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_PEGTL_INTERNAL_HAS_APPLY_HPP
#define TAO_PEGTL_INTERNAL_HAS_APPLY_HPP
#include <utility>
#include "../config.hpp"
namespace TAO_PEGTL_NAMESPACE::internal
{
template< typename, typename, template< typename... > class, typename... >
inline constexpr bool has_apply = false;
template< typename C, template< typename... > class Action, typename... S >
inline constexpr bool has_apply< C, decltype( C::template apply< Action >( std::declval< S >()... ) ), Action, S... > = true;
} // namespace TAO_PEGTL_NAMESPACE::internal
#endif