Viskores  1.0
Namespaces | Macros
Hints.h File Reference
#include <viskores/Assert.h>
#include <viskores/List.h>
#include <viskores/cont/DeviceAdapterTag.h>

Go to the source code of this file.

Namespaces

 viskores
 Groups connected points that have the same field value.
 
 viskores::cont
 Viskores Control Environment.
 

Macros

#define VISKORES_IS_HINT_LIST(T)   VISKORES_STATIC_ASSERT(::viskores::cont::internal::IsHintList<T>::value)
 Performs a static assert that the given object is a hint list. More...
 

Macro Definition Documentation

◆ VISKORES_IS_HINT_LIST

#define VISKORES_IS_HINT_LIST (   T)    VISKORES_STATIC_ASSERT(::viskores::cont::internal::IsHintList<T>::value)

Performs a static assert that the given object is a hint list.

If the provided type is a viskores::cont::internal::HintList, then this macro does nothing. If the type is anything else, a compile error will occur. This macro is useful for checking that template arguments are an expected hint list. This helps diagnose improper template use more easily.