auto-ptr
Why does the interface for auto_ptr specify two copy-constructor-like constructors
I was going through the auto_ptr documentati开发者_StackOverflow社区on on this link auto_ptr There is something which i could not fully understand why is it done. In the interface section there are tw[详细]
2022-12-17 17:00 分类:问答what is auto_ptr_ref, what it achieves and how it achieves it
auto_ptr_ref documentation heresays this This is an instrumental class to allow certain conversions that allow auto_ptr objects to be passed to and returned from functions.[详细]
2022-12-17 16:52 分类:问答C++: auto_ptr + forward declaration?
I have a class like this: class Inner; class Cont { public: Cont(); virtual ~Cont(); private: Inner* m_inner;[详细]
2022-12-14 13:58 分类:问答Ternary operator on auto_ptr content not working
I initialize an auto_ptr to NULL and later in the game I need to know if it has NULL or not to return it or a new copy.[详细]
2022-12-08 02:23 分类:问答