what is auto_ptr_ref, what it achieves and how it achieves it

前端 未结 3 1217
刺人心
刺人心 2020-12-16 19:44

auto_ptr_ref documentation here says this

This is an instrumental class to allow certain conversions that allow auto_ptr objects to be passed to and returned

3条回答
  •  既然无缘
    2020-12-16 20:08

    I just found a very good link and a name for this technique "Move Constructors" or "Colvin-Gibbons trick"

    http://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Move_Constructor

提交回复
热议问题