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
Šimon Tóth’s Post
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development
e.solutions GmbH•878 followers
2yThanks, Šimon Tóth!