-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Improve template deduction rules for Span and List. #39691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This allows writing List(someArray) instead of having to specify the type of the thing stored in the array, and same for Span.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
The pull request improves template deduction rules for Span and List, allowing for more concise code when constructing these objects. The changes include adding template deduction guides and corresponding unit tests. The feedback suggests adding comments to explain the purpose of the template deduction guides and the added dependency in the build file to improve code readability and maintainability.
|
PR #39691: Size comparison from 31c8966 to 6ad781b Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
* Improve template deduction rules for Span and List. This allows writing List(someArray) instead of having to specify the type of the thing stored in the array, and same for Span. * Address review comments.
This allows writing List(someArray) instead of having to specify the type of the thing stored in the array, and same for Span.
Testing
Unit tests added.