Commit 6aa12510 authored by Jan Koniarik's avatar Jan Koniarik
Browse files

Removed deprecateD

parent d0e4b792
......@@ -20,15 +20,6 @@ constexpr float default_epsilon = 1.19e-07f;
template <typename T>
constexpr void ignore(T &&) {}
/// Callable object that is inspired by std::identity
/// Marked deprecated on 19.4.2021
struct [[deprecated]] identity {
template <typename T>
[[nodiscard]] constexpr T &&operator()(T &&t) const noexcept {
return std::forward<T>(t);
}
};
template <typename T>
struct convert_to {
template <typename U>
......@@ -50,18 +41,6 @@ constexpr int sign(T &&val) {
return 0;
}
/// Marked deprecated on 19.4.2021
template <typename T>
[[deprecated]] constexpr T clamp(T val, T from, T to) {
if (val < from) {
return from;
}
if (val > to) {
return to;
}
return val;
}
/// maps input value 'input' from input range to equivalent value in output range
template <arithmetic_base U, arithmetic_base T>
[[nodiscard]] constexpr U map_range(T input, T from_min, T from_max, U to_min, U to_max) {
......
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