¡@

Home 

c++ Programming Glossary: ooo

C++, is it possible to call a constructor directly, without new?

http://stackoverflow.com/questions/2494471/c-is-it-possible-to-call-a-constructor-directly-without-new

ctor puts str ~Object1 puts dtor puts str free str Object1 ooo 2 Object1 I'm the first object Object1 I'm the 2nd do_smth_useful.. I'm the first object Object1 I'm the 2nd do_smth_useful ooo ooo 0 .~Object1 call destructor ooo 0 .Object1 I'm the 3rd object.. the first object Object1 I'm the 2nd do_smth_useful ooo ooo 0 .~Object1 call destructor ooo 0 .Object1 I'm the 3rd object..