VTK-m  2.0
vtkm::VecTraits< vtkm::Pair< T, U > > Struct Template Reference

VecTraits for Pair types. More...

#include <VecTraits.h>

Inheritance diagram for vtkm::VecTraits< vtkm::Pair< T, U > >:

Detailed Description

template<typename T, typename U>
struct vtkm::VecTraits< vtkm::Pair< T, U > >

VecTraits for Pair types.

Although a pair would seem better as a size-2 vector, we treat it as a scalar. This is because a Vec is assumed to have the same type for every component, and a pair in general has a different type for each component. Thus we treat a pair as a "scalar" unit.


The documentation for this struct was generated from the following file: