Stan  1.0
probability, sampling & optimization
Public Types | List of all members
stan::scalar_type< T > Struct Template Reference

Metaprogram structure to determine the base scalar type of a template argument. More...

#include <traits.hpp>

Public Types

typedef scalar_type_helper< is_vector< T >::value, T >::type type
 

Detailed Description

template<typename T>
struct stan::scalar_type< T >

Metaprogram structure to determine the base scalar type of a template argument.

This base class should be specialized for structured types.

Template Parameters
TType of object.

Definition at line 104 of file traits.hpp.

Member Typedef Documentation

◆ type

template<typename T >
typedef scalar_type_helper<is_vector<T>::value, T>::type stan::scalar_type< T >::type

Definition at line 105 of file traits.hpp.


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

     [ Stan Home Page ] © 2011–2012, Stan Development Team.