//@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 #ifndef KOKKOS_KOKKOS_GRAPHIMPL_UTILITIES_HPP #define KOKKOS_KOKKOS_GRAPHIMPL_UTILITIES_HPP #include #include #include namespace Kokkos { namespace Impl { //============================================================================== // {{{1 template struct is_compatible_type_erasure : std::false_type {}; template struct is_compatible_type_erasure : std::true_type {}; template <> struct is_compatible_type_erasure : std::true_type {}; template struct is_compatible_type_erasure : std::true_type {}; // So there are a couple of ways we could do this, but I didn't want to set up // all of the machinery to do a lazy instantiation of the convertibility // condition in the converting constructor of GraphNodeRef, so I'm going with // this for now: // TODO @desul-integration make this variadic once we have a meta-conjunction template