出典:Wiktionary
出典:『Wiktionary』 (2016/05/21 20:02 UTC 版)
copy constructor (複数形 copy constructors)
出典:Wikipedia
出典:『Wikipedia』 (2011/07/21 14:06 UTC 版)
A copy constructor is a special constructor in the C++ programming language creating a new object as a copy of an existing object. The first argument of such a constructor is a reference to an object of the same type as is being constructed (const or non-const), which might be followed by parameters of any type (all having default values).
![]()