Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme  | Privacy 

C++ move/copy constructor and assignment demo

Language: Editor: Layout:
+ ] Compiler args + ] Show input
Compilation time: 3,5 sec, absolute running time: 0,32 sec, absolute service time: 3,86 sec 
fork mode |  history  | discussion
ctor allocate abc
ctor copy - constructing with copy of abc
ctor allocate one
ctor move one to me
dtor, already deleted
ctor allocate asdf
assign move: move asdf to abc
dtor, already deleted
assign copy of asdf to abc
dtor one
dtor asdf
dtor asdf