VTK  9.1.0
Public Types | List of all members
vtkTypeList Class Reference

TypeList implementation and utilities. More...

#include <vtkTypeList.h>

Public Types

template<typename... Ts>
using Create = typename vtkTypeList::detail::CreateImpl< Ts... >::type
 

Detailed Description

TypeList implementation and utilities.

vtkTypeList provides a way to collect a list of types using C++ templates. In VTK, this is used heavily by the vtkArrayDispatch system to instantiate templated code for specific array implementations. The book "Modern C++ Design: Generic Programming and Design Patterns Applied" by Andrei Alexandrescu provides additional details and applications for typeLists. This implementation is heavily influenced by the example code in the book.

Note that creating a typelist in C++ is simplified greatly by using the vtkTypeList::Create<T1, T2, ...> functions.

See also
vtkArrayDispatch vtkTypeListMacros

Member Typedef Documentation

◆ Create

template<typename... Ts>
using vtkTypeList::Create = typename vtkTypeList::detail::CreateImpl<Ts...>::type

Definition at line 176 of file vtkTypeList.h.


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