copy constructor 中文意思是什麼
copy constructor
解釋
復制構造函數- copy : n 1 抄本,繕本,謄本,摹本,復製品,【電影】拷貝;【法律】副本 (opp script)。2 (書的)一部,一...
- constructor : n. 1. 建造者,建設者。2. 【海軍】造船技師。
-
Because a template constructor is never a copy constructor, the presence of such a template does not suppress the implicit declaration of a copy constructor
由於模板構造函數終究不是拷貝構造函數,因此這種模板的出現並不會隱藏原來隱含的拷貝構造函數之聲明。 -
Although this may at first seem like only an efficiency concern ( and you normally don ' t want to concern yourself with efficiency tuning while you ' re designing and assembling your program ), there ' s more at stake : as you ' ll see in the remainder of the chapter, a copy - constructor is required to pass an object by value, and this isn ' t always available
盡管初看起來,僅僅是一個與效率相關的難題(並且你在設計和裝配程序時,一般不會想到通過調整效率來關心一下自己的程序) ,這更像是在賭博:本章餘下的內容中你將會看到,通過傳值方式需要給對象傳遞一個拷貝構造函數,但並不老是行得通。 -
This method serves as a copy constructor for nodes
該方法用作節點的復制構造函數。 -
S copy constructor and one call to the destructor
的復制構造函數的調用和一個對析構函數的調用。 -
Function will not create the copy constructor or destructor
函數將不創建復制構造函數或析構函數。 -
Unlike some languages, c does not provide a copy constructor
與有些語言不同, c #不提供復制構造函數。 -
How to : write a copy constructor
>如何:編寫復制構造函數 -
Explicit specialization is not allowed as a copy constructor and copy assignment operator
不允許將顯式專用化作為復制構造函數和復制賦值運算符。 -
Indicates that any copying of values of this type must use the copy constructor provided by the type
指示對此類型的值的任何復制操作都必須使用由該類型提供的復制構造函數。 -
Also enable the named return value optimization, which eliminates the copy constructor and destructor of a stack based return value
也支持命名返回值優化,它消除了基於堆棧的返回值的復制構造函數和析構函數。 -
Also enables the named return value optimization, which eliminates the copy constructor and destructor of a stack based return value
還啟用「命名的返回值」優化,它消除了基於堆棧的返回值的復制構造函數和析構函數。 -
Also enables the named return value optimization, which eliminates the copy constructor and destructor of a stack based return value. see
還會啟用命名的返回值優化,此優化可消除基於堆棧的返回值的復制構造函數和析構函數。 -
Add output statements to the constructor, destructor and copy constructor to see the effect of the named return value optimization when you run the program
將輸出語句添加到構造函數、析構函數和復制構造函數,以查看在運行程序時命名返回值優化的效果。
分享友人