Type trait for extracting the scalar type of tensors and arrays.
More...
#include <type_traits.h>
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
-
T | The type to extract a numeric type from |
Enabler | Type used to selectively implement partial specializations
- 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
- if T is std::complex<U>, scalar_type<T>::type evaluates to U
- if T is not a scalar or complex type, will evaluate to
scalar_type<numeric_type<T>::type>::type , and so on recursively
- otherwise it's undefined
|
Definition at line 539 of file type_traits.h.
The documentation for this struct was generated from the following file: