//@HEADER // ************************************************************************ // // Kokkos v. 4.0 // Copyright (2022) National Technology & Engineering // Solutions of Sandia, LLC (NTESS). // // Under the terms of Contract DE-NA0003525 with NTESS, // the U.S. Government retains certain rights in this software. // // Part of Kokkos, under the Apache License v2.0 with LLVM Exceptions. // See https://kokkos.org/LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //@HEADER #include // type_list #include #ifndef KOKKOS_KOKKOS_POLICYTRAITMATCHER_HPP #define KOKKOS_KOKKOS_POLICYTRAITMATCHER_HPP namespace Kokkos { namespace Impl { //============================================================================== // {{{1 // To handle the WorkTag case, we need more than just a predicate; we need // something that we can default to in the unspecialized case, just like we // do for AnalyzeExecPolicy template struct PolicyTraitMatcher : std::false_type {}; template struct PolicyTraitMatcher< TraitSpec, Trait, std::enable_if_t< TraitSpec::template trait_matches_specification::value>> : std::true_type {}; // end PolicyTraitMatcher }}}1 //============================================================================== } // end namespace Impl } // end namespace Kokkos #endif // KOKKOS_KOKKOS_POLICYTRAITMATCHER_HPP