Kokkos Node API and Local Linear Algebra Kernels Version of the Day
TSQR::Test::Cons< CarType, CdrType > Class Template Reference

Typedef container enabling iteration over compile-time type list. More...

#include <Tsqr_TestUtils.hpp>

List of all members.


Detailed Description

template<class CarType, class CdrType>
class TSQR::Test::Cons< CarType, CdrType >

Typedef container enabling iteration over compile-time type list.

One can use the typedefs in a Cons to "iterate" recursively over a list of types, that is defined at compile time. CarType may be any type; these are the "values" in the type list. CdrType must be either a Cons or a NullCons.

The names Cons, Car, and Cdr come from Lisp. (Don't write "Lisp" in all caps, unless you are referring to early versions of the language.) A cons is a list. If x is a cons, then (car x) returns the head of the list, and (cdr x) returns the rest of the list.

Definition at line 156 of file Tsqr_TestUtils.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends