Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

If we want to iterate over the elements of a bidirectional range in reverse order, we do not have to mutate it. However, if we want to mutate the range, we can use the std::reverse algorithm. Note that std::list and std::forward_list provide a reverse method that reorders the nodes (instead of reversing the order of the values). Compiler Explorer link: https://lnkd.in/e2hdsyTK #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text
Vadym Marekha

e.solutions GmbH878 followers

2y

Thanks, Šimon Tóth!

Like
Reply

To view or add a comment, sign in

Explore content categories