The C++23 introduced a major change for the subscript operator, allowing it to take multiple arguments. When multiple arguments are provided, they are separated by a comma. The standard comma operator in subscripts was deprecated in C++20. This finally gives C++ a way to interface with multi-dimensional data structures naturally. Because overloaded operators can have arbitrary arguments, the multi-argument operator[] can also serve as an alternative to the operator(). Compiler Explorer link: https://lnkd.in/eAuDBbpq #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
ISO/IEC JTC1/SC22/WG21 - The…•11K followers
1yStill waiting for MSVC to implement this wg21.link/P2128R6 and many other C++23 language features. GCC & Clang are doing better. Notice all the red in the core language features for MSVC, very sad. en.cppreference.com/w/cpp/compiler_support/23 MSVC is doing much better on STL/library support.