Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
nemetroid
· 11mo ago · 0 comments
Each entry in the map will be copied. In C++, const T& is allowed to bind to a temporary object (whose lifetime will be extended). So a new pair is implicitly constructed, and the reference binds to this object.
Comments
No comments yet.
Better HN