/Engine/Source/Runtime/Engine/Public/EngineUtils.h
Selected actor iterator, this is for ease of use but the same can be done by adding EActorIteratorFlags::OnlySelectedActors to
class FSelectedActorIterator : public [TActorIteratorBase< FSelectedActorIterator >](API\Runtime\Engine\TActorIteratorBase)