//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE. See the above copyright notice for more information. //============================================================================ #ifndef vtk_m_cont_arg_TypeCheckTagArrayIn_h #define vtk_m_cont_arg_TypeCheckTagArrayIn_h #include #include #include #include namespace vtkm { namespace cont { namespace arg { /// The Array type check passes for any object that behaves like an \c /// ArrayHandle class and can be passed to the ArrayIn transport. /// struct TypeCheckTagArrayIn { }; namespace detail { template ::type::value> struct IsArrayHandleIn; template struct IsArrayHandleIn { static constexpr bool value = vtkm::internal::PortalSupportsGets::value; }; template struct IsArrayHandleIn { static constexpr bool value = false; }; } // namespace detail template struct TypeCheck { static constexpr bool value = detail::IsArrayHandleIn::value; }; } } } // namespace vtkm::cont::arg #endif //vtk_m_cont_arg_TypeCheckTagArray_h