Wednesday, September 7, 2016

copy and strong + swap function

basically

Copy: pass by value
Strong: pass by reference
more details: https://github.com/lingzt/CopyAndStrong



Swap function:

is to  swap values of two. 

The <T> in swap function means two value has to be of the same type. <T> does not mean any type specifically but only mean certain type in general. 





No comments:

Post a Comment