Base: apply std::ranges
This commit is contained in:
@@ -333,7 +333,7 @@ bool FileInfo::hasExtension(const char* Ext) const
|
||||
|
||||
bool FileInfo::hasExtension(std::initializer_list<const char*> Exts) const
|
||||
{
|
||||
return std::any_of(Exts.begin(), Exts.end(), [this](const char* ext) {
|
||||
return std::ranges::any_of(Exts, [this](const char* ext) {
|
||||
return hasExtension(ext);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user