UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AnyOf.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
uLang/Common/Templates/Invoke.h
"
6
#include "
uLang/Common/Templates/References.h
"
7
8
namespace
uLang
{
9
template
<
typename
FirstIterator,
typename
LastIterator,
typename
Function>
10
bool
AnyOf
(
FirstIterator
First
,
LastIterator
Last
,
Function
F
)
11
{
12
for
(;
First
!=
Last
; ++
First
)
13
{
14
if
(
uLang::Invoke
(
F
, *
First
))
15
{
16
return
true
;
17
}
18
}
19
return
false
;
20
}
21
22
template
<
typename
Range,
typename
Function>
23
bool
AnyOf
(Range&&
R
,
Function
&&
F
)
24
{
25
return
uLang::AnyOf
(
R
.begin(),
R
.end(), uLang::ForwardArg<Function>(
F
));
26
}
27
}
EMusicalNoteName::F
@ F
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
EVersionComparison::First
@ First
EIoErrorCode::Last
@ Last
EPixelFormatChannelFlags::R
@ R
References.h
Invoke.h
uLang
Definition
VVMEngineEnvironment.h:23
uLang::EExtensionFieldAccessorKind::Function
@ Function
uLang::AnyOf
bool AnyOf(FirstIterator First, LastIterator Last, Function F)
Definition
AnyOf.h:10
uLang::Invoke
ULANG_FORCEINLINE auto Invoke(FuncType &&Func, ArgTypes &&... Args) -> decltype(uLang::ForwardArg< FuncType >(Func)(uLang::ForwardArg< ArgTypes >(Args)...))
Definition
Invoke.h:47
Engine
Source
Runtime
Solaris
uLangCore
Public
uLang
Common
Algo
AnyOf.h
Generated by
1.9.8