¡@

Home 

c++ Programming Glossary: nextbase

How do I pass a unique_ptr argument to a constructor or a function?

http://stackoverflow.com/questions/8114276/how-do-i-pass-a-unique-ptr-argument-to-a-constructor-or-a-function

they must do one of the following Base newBase std move nextBase Base fromTemp std unique_ptr Base new Base ... To take a unique.. object etc in question. After newBase is constructed nextBase is guaranteed to be empty . You don't own the object and you.. actually move anything it's just a fancy cast. std move nextBase returns a Base that is an r value reference to nextBase . That's..