top | item 46276165

(no title)

nemetroid | 2 months ago

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.

discuss

order

No comments yet.