//============================================================================ // 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_internal_ArrayPortalHelpers_h #define vtk_m_internal_ArrayPortalHelpers_h #include #include namespace vtkm { namespace internal { template struct PortalSupportsGets { template ().Get(vtkm::Id{}))> static std::true_type has(int); template static std::false_type has(...); using type = decltype(has(0)); }; template struct PortalSupportsSets { template ().Set(vtkm::Id{}, std::declval()))> static std::true_type has(int); template static std::false_type has(...); using type = decltype(has(0)); }; } } // namespace vtkm::internal #endif //vtk_m_internal_ArrayPortalHelpers_h