TiledArray  0.7.0
TiledArray::detail::scalar_type< T, Enabler > Struct Template Reference

Type trait for extracting the scalar type of tensors and arrays. More...

#include <type_traits.h>

Detailed Description

template<typename T, typename Enabler = void>
struct TiledArray::detail::scalar_type< T, Enabler >

Type trait for extracting the scalar type of tensors and arrays.

Template Parameters
TThe type to extract a numeric type from
EnablerType used to selectively implement partial specializations
  1. if T is a scalar type, i.e. is_scalar<T>::value is true (e.g. int or float), scalar_type<T>::type evaluates to T
  2. if T is std::complex<U>, scalar_type<T>::type evaluates to U
  3. if T is not a scalar or complex type, will evaluate to scalar_type<numeric_type<T>::type>::type, and so on recursively
  4. otherwise it's undefined

Definition at line 539 of file type_traits.h.


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