uvco 0.1
Loading...
Searching...
No Matches
Functions
uvco::anonymous_namespace{scheduler.cc} Namespace Reference

Functions

unsigned findFirstIndexOf (std::span< const std::coroutine_handle<> > handles, std::coroutine_handle<> handle)
 

Function Documentation

◆ findFirstIndexOf()

unsigned uvco::anonymous_namespace{scheduler.cc}::findFirstIndexOf ( std::span< const std::coroutine_handle<> >  handles,
std::coroutine_handle<>  handle 
)
19 {
20 return std::ranges::find_if(
21 handles, [&handle](const auto &h) { return h == handle; }) -
22 handles.begin();
23}