C++相談室 part56
at TECH
[
2ch
|
▼Menu
]
■コピペモード
□
スレを通常表示
□
オプションモード
□このスレッドのURL
■項目テキスト
300:デフォルトの名無しさん 07/08/13 12:06:17 >>298 正しく、RVOですね。 301:デフォルトの名無しさん 07/08/13 12:07:59 規格には何箇所かコピーコンストラクタの省略を許す箇所が挙げられている。 戻り値最適化もコピー初期化時の省略もそのひとつ。 って、他にあったっけ? 302:デフォルトの名無しさん 07/08/13 12:09:56 >>300-301 これで安心して眠れます。 まだ寝ないけど。 303:デフォルトの名無しさん 07/08/13 12:10:44 >>295 これかしらん? http://web.archive.org/web/20050308020505/www.kuzbass.ru/docs/isocpp/special.html ここの最後の方 > -15- Whenever a temporary class object is copied using a copy constructor, and this object and the copy have the same cv-unqualified type, an implementation is permitted to treat the original and the copy as two different ways of referring to the same object and not perform a copy at all, even if the class copy constructor or destructor have side effects.
次ページ
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
レスジャンプ
mixiチェック!
Twitterに投稿
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch
5392日前に更新/205 KB
担当:undef