diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-03-10 16:02:43 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-03-10 16:02:43 -0500 |
commit | 87f5fb06912d19b3ff3ba80b747fcea3023a1ed5 (patch) | |
tree | c081d3e0b7703194c8162125ee7b138bb2c557d3 /include/godot_cpp/templates/sort_array.hpp | |
parent | cc1217a43cab5ff8377c2f5e53301fda67def95e (diff) | |
download | redot-cpp-87f5fb06912d19b3ff3ba80b747fcea3023a1ed5.tar.gz |
Enforce template syntax `typename` over `class`
Diffstat (limited to 'include/godot_cpp/templates/sort_array.hpp')
-rw-r--r-- | include/godot_cpp/templates/sort_array.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/godot_cpp/templates/sort_array.hpp b/include/godot_cpp/templates/sort_array.hpp index 5dda578..7ce5c78 100644 --- a/include/godot_cpp/templates/sort_array.hpp +++ b/include/godot_cpp/templates/sort_array.hpp @@ -41,7 +41,7 @@ namespace godot { break; \ } -template <class T> +template <typename T> struct _DefaultComparator { _FORCE_INLINE_ bool operator()(const T &a, const T &b) const { return (a < b); } }; @@ -52,7 +52,7 @@ struct _DefaultComparator { #define SORT_ARRAY_VALIDATE_ENABLED false #endif -template <class T, class Comparator = _DefaultComparator<T>, bool Validate = SORT_ARRAY_VALIDATE_ENABLED> +template <typename T, typename Comparator = _DefaultComparator<T>, bool Validate = SORT_ARRAY_VALIDATE_ENABLED> class SortArray { enum { INTROSORT_THRESHOLD = 16 |