|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
A utility struct that facilitates the deduction of a momentum::span type from a given type. More...
#include <types.h>
Public Types | |
| using | type = momentum::span<T> |
A utility struct that facilitates the deduction of a momentum::span type from a given type.
This utility is particularly useful when a function accepts a momentum::span<Vector3<T>> as an argument, where the template argument of momentum::span is also a template. In such cases, direct deduction of the momentum::span type from other container types (e.g., std::vector<Vector3<T>>) at the call site may fail.
By using this utility, the appropriate momentum::span type can be deduced automatically, ensuring smoother function calls and enhancing code readability.
Example usage:
| using momentum::DeduceSpanType< T >::type = momentum::span<T> |