thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
ThePEG::TypeTraits< T > Struct Template Reference

Type traits for built-in types. More...

#include <TemplateTools.h>

Public Types

enum  { hasDimension = false }
 Boolean flag. Is true for physical quantities. More...
 
typedef StandardT DimType
 Implementation selector.
 

Static Public Member Functions

template<typename U = T>
static constexpr std::enable_if<(std::is_arithmetic< U >::value &&std::is_same< U, T >::value), U >::type baseunit ()
 Base unit for arithmetic types.
 

Detailed Description

template<typename T>
struct ThePEG::TypeTraits< T >

Type traits for built-in types.

Definition at line 48 of file TemplateTools.h.

Member Typedef Documentation

◆ DimType

template<typename T >
typedef StandardT ThePEG::TypeTraits< T >::DimType

Implementation selector.

Definition at line 53 of file TemplateTools.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename T >
anonymous enum

Boolean flag. Is true for physical quantities.

Definition at line 51 of file TemplateTools.h.

Member Function Documentation

◆ baseunit()

template<typename T >
template<typename U = T>
static constexpr std::enable_if<(std::is_arithmetic< U >::value &&std::is_same< U, T >::value), U >::type ThePEG::TypeTraits< T >::baseunit ( )
inlinestaticconstexpr

Base unit for arithmetic types.

Definition at line 61 of file TemplateTools.h.


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