Commit 3e4fc5f0 authored by Jan Koniarik's avatar Jan Koniarik
Browse files

template args order chagned for map_range

parent 73cc8f7f
Pipeline #102999 passed with stage
in 14 seconds
......@@ -39,7 +39,7 @@ constexpr int sign( T&& val )
}
/// maps input value 'input' from input range to equivalent value in output range
template < arithmetic_base U, arithmetic_base T >
template < arithmetic_base T, arithmetic_base U >
[[nodiscard]] constexpr U map_range( T input, T from_min, T from_max, U to_min, U to_max )
{
return to_min + ( to_max - to_min ) * static_cast< U >( input - from_min ) /
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment