|
Uni20
Asynchronous tensor and runtime library.
|
Trait to extract the scalar type from a type T.
More...
#include <scalar_traits.hpp>
Public Types | |
| using | type = void |
Trait to extract the scalar type from a type T.
If T is a scalar (real, complex, or integer), returns T. If T is a container with a value_type that itself names a scalar or another container, the trait recurses on value_type. When no scalar can be located, scalar_type<T>::type aliases void.
| T | Type from which to extract a scalar component. |
| using uni20::scalar_type< T >::type = void |