Changeset 25278 for ps/trunk/source/maths/MathUtil.h
- Timestamp:
- Apr 16, 2021, 6:01:30 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/maths/MathUtil.h
r25266 r25278 29 29 } 30 30 31 // TODO C++20: use the proper one.32 template<typename T>33 struct type_identity34 {35 using type = T;36 };37 template<typename T>38 using type_identity_t = typename type_identity<T>::type;39 40 31 template <typename T> 41 inline T Clamp(T value, type_identity_t<T> min, type_identity_t<T>max)32 inline T Clamp(T value, max) 42 33 { 43 34 if (value <= min)
Note:
See TracChangeset
for help on using the changeset viewer.