godot/core/templates
Craig-Stoneham 604df4fc83 Improve Template Class Conditionals (Code Style)
Refactored the following template classes by replacing runtime checks with compile-time checks using if constexpr for improved code clarity and maintainability:

- RID_Alloc
- SortArray
- PagedAllocator

Changes made:

- Updated conditional checks for THREAD_SAFE in the RID_Alloc class.
- Updated conditional checks for Validate in the SortArray class.
- Updated conditional checks for thread_safe in the PagedAllocator class.
2024-08-25 18:10:51 +01:00
..
bin_sorted_array.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
command_queue_mt.cpp CommandQueueMT: Pre-allocate memory to avoid a bunch of allocations at startup 2024-05-09 11:51:07 +02:00
command_queue_mt.h Fixup recent changes to threading concerns 2024-07-16 11:03:02 +02:00
cowdata.h Merge pull request #95469 from bruvzg/cowdata_unref 2024-08-16 10:36:28 +02:00
hash_map.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
hash_set.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
hashfuncs.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
list.h Reduce and prevent unnecessary random-access to List 2024-05-04 16:08:55 +02:00
local_vector.h [Core] Add LocalVector::has for convenience 2024-05-06 18:03:37 +02:00
lru.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
oa_hash_map.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
paged_allocator.h Improve Template Class Conditionals (Code Style) 2024-08-25 18:10:51 +01:00
paged_array.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
pair.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
pass_func.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
pooled_list.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
rb_map.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
rb_set.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
rid_owner.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
rid_owner.h Improve Template Class Conditionals (Code Style) 2024-08-25 18:10:51 +01:00
rid.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
ring_buffer.h Fix GCC 14 -Wtemplate-id-cdtor warnings 2024-04-26 11:41:09 +02:00
safe_list.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
safe_refcount.h Fix GCC 14 -Wtemplate-id-cdtor warnings 2024-04-26 11:41:09 +02:00
SCsub Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
search_array.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
self_list.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
simple_type.h Redefine GetSimpleTypeT<> in terms of <type_traits> 2024-04-24 11:43:13 +02:00
sort_array.h Improve Template Class Conditionals (Code Style) 2024-08-25 18:10:51 +01:00
vector.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
vmap.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00
vset.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00