STIR  6.2.0
stir::TypeForNumericType< numeric_type_enum > Struct Template Reference

A helper class that specifies the C++ type for a particular NumericType. More...

#include "stir/NumericType.h"

Detailed Description

template<int numeric_type_enum>
struct stir::TypeForNumericType< numeric_type_enum >

A helper class that specifies the C++ type for a particular NumericType.

Use as follows:

typedef typename TypeForNumericType<NumericType::SHORT>::type current_type;

This is useful when writing code depending on the value of a NumericType enum.


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