|
inlineconstexpr |
Parameters
Return value
std::optional containing the index of the last element which evaluates to true, std::nullopt if there are none.The function is considering the case when nothing is set to be likely, checking for eve::any before hand is not going to be helpful. At the moment there isn't a function that would do otherwise.
We would recommend eve::last_true(m) - this is likely to trigger compiler optimizations, based on it being UB otherwise.