Is returning by rvalue reference more efficient?

Posted by Neil G on Stack Overflow See other posts from Stack Overflow or by Neil G
Published on 2009-07-12T18:44:43Z Indexed on 2010/04/29 8:27 UTC
Read the original article Hit count: 348

Filed under:
|
|

for example:

Beta_ab&&
Beta::toAB() const {
    return move(Beta_ab(1, 1));
}

© Stack Overflow or respective owner

Related posts about c++0x

Related posts about c++