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.
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