Is there a technical reason why std::filesystem::path doesn't offer reverse iterators (i.e., rbegin and rend)?
If I have a std::filesystem::path for /a/b/c/b/d/b/e and I want to find the first component that matches b, I can use std::find(p.begin(), p.end(), fs::path("b")).
But if I want to find the last component that matches b, I can't just switch to reverse iterators. I can write my own loop, but it seems like this would be a common operation that would have been "almost free" to implement.
Is there something about the design of the interface that would make it difficult to provide reverse iterators?
According to this page of cppreference.com:
Also from a page of boost.org, which says:
To find a more detailed explanation on stashing iterators, visit this page.