Skip to content

num::math::scalar_t

Defined in header <core/math/associated.hpp>

template <class T>
using scalar_t = typename detail::scalar_of<std::remove_cvref_t<T>>::type;

Scalar of a container: its value_type, else the type of v[i], else void. Void lets a concept over scalar_t be false for an unrelated type.