You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently, if you want to add an element then get it's reference, you need to first call _push_back, then _get_ref(_count(list) - 1), _back returns a copy, so we can't use that. This is quite verbose.
Describe the solution you'd like
it would be useful if we had an _push_back_ref, function, which is like _push_back, but it returns the pointer instead of a bool.
Maybe a _back_ref
Not sure if expanding the API surface is worth it, but it might be worth considering.
The text was updated successfully, but these errors were encountered:
Feature Request Template
What is the nature of this request?
Is your feature request related to a problem? Please describe.
Currently, if you want to add an element then get it's reference, you need to first call
_push_back
, then_get_ref(_count(list) - 1)
,_back
returns a copy, so we can't use that. This is quite verbose.Describe the solution you'd like
it would be useful if we had an
_push_back_ref
, function, which is like_push_back
, but it returns the pointer instead of a bool.Maybe a
_back_ref
Not sure if expanding the API surface is worth it, but it might be worth considering.
The text was updated successfully, but these errors were encountered: