summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
diff options
context:
space:
mode:
authormitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-09-30 17:26:50 -0700
committermitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-12-15 19:54:16 -0800
commit140252ffc0ae71e8b5309bff7d6550189c602702 (patch)
tree7e6fe317fc93e0d9fc91e089ec3af86af25565f1 /Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
parent860e6cf5cb7d96499aecf6f6067783bdb71c29ad (diff)
Modernize `std::any_of` with ranges
In WiimoteReal.cpp, JitRegCache.cpp, lambda predicates were replaced by pointers to member functions because ranges algorithms are able invoke those. In ConvertDialog.cpp, the `std::mem_fn` helper was removed because ranges algorithms are able to handle pointers to member functions as predicates.
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VulkanContext.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/VulkanContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
index ed2407775a..ed3b709529 100644
--- a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
@@ -929,8 +929,8 @@ void VulkanContext::DisableDebugUtils()
bool VulkanContext::SupportsDeviceExtension(const char* name) const
{
- return std::any_of(m_device_extensions.begin(), m_device_extensions.end(),
- [name](const std::string& extension) { return extension == name; });
+ return std::ranges::any_of(m_device_extensions,
+ [name](const std::string& extension) { return extension == name; });
}
static bool DriverIsMesa(VkDriverId driver_id)