Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Types | Static Public Attributes | List of all members
shambase::primitive_type_info< _T > Struct Template Reference

Struct containing information about primitive types. More...

#include <shambase/include/shambase/primitive_type_info.hpp>

Public Types

using T = _T
 The type of the primitive type.
 

Static Public Attributes

static constexpr bool is_specialized = false
 Whether the type is a specialized primitive type (i.e. not a float)
 
static constexpr bool is_float = false
 Whether the type is a float type.
 
static constexpr bool is_int = false
 Whether the type is an integer type.
 
static constexpr bool is_unsigned = false
 Whether the type is an unsigned integer type.
 
static constexpr T max = std::numeric_limits<T>::max()
 The maximum value of the type.
 
static constexpr T min = std::numeric_limits<T>::lowest()
 The minimum value of the type (negative if float)
 
static constexpr T epsilon = std::numeric_limits<T>::epsilon()
 The smallest value of the type that can be represented exactly.
 
static constexpr T infty = std::numeric_limits<T>::infinity()
 Infinity if the type can represent it.
 

Detailed Description

template<class _T>
struct shambase::primitive_type_info< _T >

Struct containing information about primitive types.

Template Parameters
TThe type of the primitive type

Definition at line 32 of file primitive_type_info.hpp.

Member Typedef Documentation

◆ T

The type of the primitive type.

Definition at line 34 of file primitive_type_info.hpp.

Member Data Documentation

◆ epsilon

template<class _T >
constexpr T shambase::primitive_type_info< _T >::epsilon = std::numeric_limits<T>::epsilon()
staticconstexpr

The smallest value of the type that can be represented exactly.

Definition at line 55 of file primitive_type_info.hpp.

◆ infty

template<class _T >
constexpr T shambase::primitive_type_info< _T >::infty = std::numeric_limits<T>::infinity()
staticconstexpr

Infinity if the type can represent it.

Definition at line 58 of file primitive_type_info.hpp.

◆ is_float

template<class _T >
constexpr bool shambase::primitive_type_info< _T >::is_float = false
staticconstexpr

Whether the type is a float type.

Definition at line 40 of file primitive_type_info.hpp.

◆ is_int

template<class _T >
constexpr bool shambase::primitive_type_info< _T >::is_int = false
staticconstexpr

Whether the type is an integer type.

Definition at line 43 of file primitive_type_info.hpp.

◆ is_specialized

template<class _T >
constexpr bool shambase::primitive_type_info< _T >::is_specialized = false
staticconstexpr

Whether the type is a specialized primitive type (i.e. not a float)

Definition at line 37 of file primitive_type_info.hpp.

◆ is_unsigned

template<class _T >
constexpr bool shambase::primitive_type_info< _T >::is_unsigned = false
staticconstexpr

Whether the type is an unsigned integer type.

Definition at line 46 of file primitive_type_info.hpp.

◆ max

template<class _T >
constexpr T shambase::primitive_type_info< _T >::max = std::numeric_limits<T>::max()
staticconstexpr

The maximum value of the type.

Definition at line 49 of file primitive_type_info.hpp.

◆ min

template<class _T >
constexpr T shambase::primitive_type_info< _T >::min = std::numeric_limits<T>::lowest()
staticconstexpr

The minimum value of the type (negative if float)

Definition at line 52 of file primitive_type_info.hpp.


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