Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Public Types | List of all members
uni20::scalar_type< T > Struct Template Reference

Trait to extract the scalar type from a type T. More...

#include <scalar_traits.hpp>

Public Types

using type = void
 

Detailed Description

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

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.

Template Parameters
TType from which to extract a scalar component.

Member Typedef Documentation

◆ type

template<typename T >
using uni20::scalar_type< T >::type = void

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