/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Don’t blindly prefer emplace_back to push_back
(quuxplusone.github.io)
178 points
todsacerdoti
| 1 comments |
04 Mar 21 08:02 UTC
|
HN request time: 0.223s
|
source
Show context
choeger
◴[
04 Mar 21 10:44 UTC
]
No.
26340875
[source]
▶
>>26339893 (OP)
#
Why is there no move_back(), I wonder?
replies(2):
>>26341048
#
>>26341059
#
1.
lgeorget
◴[
04 Mar 21 11:16 UTC
]
No.
26341048
[source]
▶
>>26340875
#
Well that's emplace_back() or push_back() when you pass them a r-value reference basically.
ID:
GO
↑