Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c++.moderated    |    Moderated discussion of C++ superhackery    |    33,346 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 32,674 of 33,346    |
|    Zhihao Yuan to Frank Birbacher    |
|    Re: Constructing pair |
|    22 Nov 12 11:28:04    |
      From: lichray@googlemail.com              On Thursday, 22/11/2012 1:46:09 AM UTC-6, Frank Birbacher wrote:       > Does to following code reliably construct a pair that holds a given       > value twice? Is it true that pair::first will be constructed before       > pair::second? Does make_pair only forward arguments?              No. Actually, It copies its argument first, then copies t and move t       into make_pair's argument list, in an indeterminate sequence. The       moving /b/ can happen before the copying /a/.              > template |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca