「More C++ Idioms」の版間の差分

削除された内容 追加された内容
編集の要約なし
Yak! (トーク | 投稿記録)
en:More C++ Idioms (15:19, 3 June 2009 UTC) に合わせて序文、目次をサブページを読み込む形に修正。
1 行
__TOC__
== 動機 ==
{{:More C++ Idioms/Preface}}
{| border="0" cellspacing="0" cellpadding="5" align="center"
| [[画像:More_CPP_Idioms.gif|190px|More C++ Idioms]]
| '''「C++ はあまりに『熟練者に優しく』なってしまった」(C++ has indeed become too "expert friendly"''')<ref>[http://www.technologyreview.com/Infotech/17831 The Problem with Programming]</ref> --- Bjarne Stroustrup.
 
==追加情報==<!-- {{Print version|More C++ Idioms/Print Version}}
それは、熟練者が C++ のイディオムに密に親しんでいるからである。よりたくさんのイディオムを会得すれば、C++ はより優しくなる。そして、世の中には数百のイディオムがあるのだ!この open book の目的は、ほどほどに C++ に精通しているプログラマの知識を、よりずっと C++ が優しく感じるレベルに引き上げる助けとなることである。この open book は、熟練した C++ プログラマがプログラミングや設計を行う際にしばしば用いる再利用可能なイディオムの、網羅的なカタログとなるべく意図されている。これは、それらのテクニックや語彙をひとまとめにしようという取り組みである。この本では、イディオムは、名前-意図-動機-解法という簡潔で理解しやすい規則的なフォーマットで記述されている。
{{Reading level|Intermediate}} -->
 
[[/著者/|著者リスト]] <!--| [[/Praise/Praise]] -->| [[/ガイドライン/|著者向けガイドライン]] | [[/翻訳の方針/]]<!-- | [[/GNUFDL/GNU Free Documentation License]] <br/>
C++ の知識の再利用可能な断片をカタログ化しようという地平は拓かれた(GoF がオブジェクト指向パターンに対して行ったように)。ここでの目標は、まずは現代的なイディオムの網羅的なカタログを構築し、後にちょうどパターンランゲージのようにイディオムランゲージに進化させることである。最後に、この本の内容は [http://www.gnu.org/copyleft/fdl.html GNU Free Documentation License] の下で再配布可能である。
{ border="1" cellpadding="5" cellspacing="0"
[[Image:rss_logo.jpg50pxRSS Logo]]
]|}-->
 
<!--<br/><br/><br/>-->
'''対象とする読者:''' C++ と関連するパラダイムについてほどほどのレベルの知識を持つ人誰でも</small></small>
{{:More C++ Idioms/Contents}}
|}
 
== 追加情報 ==
[[/著者/|著者リスト]] | [[/ガイドライン/|著者向けガイドライン]] | [[/翻訳の方針/]]
 
<!--{{Subjects|C++ programming language|Prerequisite/C++}}
== 目次 ==
{{DDC|600}}
{{LOC|QA76.73}}
{{bi}}
{{alphabetical|M}}-->
 
[[en:More C++ Idioms]]
{{進捗状況}}
# [[/ポリシーの複製(Policy Clone)/]] {{進捗|100%|2007-10-19}}
# [[/メンバテンプレートによる型変換(Coercion by Member Template)/]] {{進捗|100%|2007-10-20}}
# [[/スコープ防壁(Scope Guard)/]] {{進捗|100%|2007-10-21}}
# [[More C%2B%2B Idioms/ポリシーの複製(Policy Clone)|メタ関数ラッパ(Meta-function wrapper)]] {{進捗|100%|2007-10-19}}
# [[/式テンプレート(Expression-template)/]] {{進捗|75%|2007-10-22}}
# [[/コピー禁止ミックスイン(Non-copyable Mixin)/]] {{進捗|75%|2007-10-24}}
# [[/奇妙に再帰したテンプレートパターン(Curiously Recurring Template Pattern)/]] {{進捗|75%|2007-10-24}}
# [[/パラメータ化された基本クラス(Parameterized Base Class)/]] {{進捗|75%|2007-10-25}}
# [[More C%2B%2B Idioms/パラメータ化された基本クラス(Parameterized Base Class)|パラメータ化された継承(Parameterized Inheritance)]] {{進捗|75%|2007-10-25}}
# [[/所有権移動コンストラクタ(Move Constructor)/]] {{進捗|100%|2007-10-26}}
# [[/安全な bool(Safe bool)/]] {{進捗|75%|2007-10-28}}
# [[/メンバによる基本クラスの初期化(Base-from-Member)/]] {{進捗|75%|2007-10-31}}
# [[/生成の追跡(Construction Tracker)/]] {{進捗|75%|2007-11-02}}
# [[/実行時の静的初期化順序に関するイディオム(Runtime Static Initialization Order Idioms)/]] {{進捗|75%|2007-11-09}}
# [[/初回使用時生成(Construct On First Use)/]] {{進捗|75%|2007-11-09}}
# [[/小粋なカウンタ(Nifty Counter)/]] {{進捗|75%|2007-11-09}}
# [[More C%2B%2B Idioms/小粋なカウンタ(Nifty Counter)|シュワルツカウンタ(Schwarz Counter)]] {{進捗|75%|2007-11-09}}
# [[/初期化中の仮想関数呼び出し(Calling Virtuals During Initialization)/]] {{進捗|75%|2008-03-28}}
# [[/ポインタ参照前後での実行(Execute-Around Pointer)/]] {{進捗|75%|2008-03-28}}
# [[/薄いテンプレート(Thin Template)/]] {{進捗|75%|2008-03-28}}
# [[More C%2B%2B Idioms/初期化中の仮想関数呼び出し(Calling Virtuals During Initialization)|初期化中の動的束縛(Dynamic Binding During Initialization)]] {{進捗|75%|2008-03-28}}
# [[/throw しない swap(Non-throwing swap)/]] {{進捗|75%|2008-04-05}}
# [[/コピーして swap(Copy-and-swap)/]] {{進捗|75%|2008-04-05}}
# [[/縮めて合わせる(Shrink-to-fit)/]] {{進捗|75%|2008-04-08}}
# [[/空にして最小化(Clear-and-minimize)/]] {{進捗|75%|2008-04-08}}
# [[/消去・削除(Erase-Remove)/]] {{進捗|75%|2008-04-12}}
# [[/スマートポインタ(Smart Pointer)/]] {{進捗|75%|2008-04-14}}
# [[/Const auto_ptr/]] {{進捗|75%|2008-04-15}}
# [[/チェック付きdelete(Checked delete)/]] {{進捗|75%|2008-04-15}}
# [[/内部クラス(Inner Class)/]] {{進捗|75%|2008-04-16}}
# [[/反復子対(Iterator Pair)/]] {{進捗|100%|2008-04-20}}
# [[/リソースの返値(Resource Return)/]] {{進捗|75%|2008-04-20}}
# [[/nullptr/]] {{進捗|75%|2008-04-22}}
# [[/汎用コンテナ作成用イディオム(Generic Container Idioms)/]] {{進捗|75%|2008-05-02}}
# [[/インクルードガードマクロ(Include Guard Macro)/]] {{進捗|75%|2008-05-02}}
# [[/inline ガードマクロ(Inline Guard Macro)/]] {{進捗|75%|2008-05-27}}
# [[/複文マクロ(Multi-statement Macro)/]] {{進捗|75%|2008-05-28}}
# [[/friend 関数の生成(Making New Friends)/]] {{進捗|75%|2008-05-29}}
# [[/リソース獲得は初期化である(Resource Acquisition Is Initialization)/]] {{進捗|100%|2008-05-29}}
# [[More C%2B%2B Idioms/リソース獲得は初期化である(Resource Acquisition Is Initialization)|オブジェクト生存期間前後での実行(Execute-Around Object)]] {{進捗|100%|2008-05-29}}
# [[More C%2B%2B Idioms/リソース獲得は初期化である(Resource Acquisition Is Initialization)|スコープ内ロック(Scoped Locking)]] {{進捗|100%|2008-05-29}}
# [[/インタフェースクラス(Interface Class)/]] {{進捗|75%|2008-06-12}}
# [[/能力照会(Capability Query)/]] {{進捗|75%|2008-06-12}}
# [[/ハンドル・ボディ(Handle Body)/]] {{進捗|75%|2009-08-18}}
# [[More C%2B%2B Idioms/ハンドル・ボディ(Handle Body)|Pimpl]] {{進捗|75%|2009-08-18}}
# [[More C%2B%2B Idioms/ハンドル・ボディ(Handle Body)|チェシャ猫(Cheshire Cat)]] {{進捗|75%|2009-08-18}}
# [[More C%2B%2B Idioms/ハンドル・ボディ(Handle Body)|コンパイル防壁(Compilation Firewall)]] {{進捗|75%|2009-08-18}}
# [[More C%2B%2B Idioms/計数ボディ(Counted Body)|計数ボディ(侵襲的参照回数計測)(Counted Body (intrusive reference couting))]]
# [[More C%2B%2B Idioms/計数ボディ(Counted Body)|参照回数計測(侵襲的)(Reference Counting (intrusive))]]
# [[More C%2B%2B Idioms/独立計数ボディ(Detached Counted Body)|独立計数ボディ(非侵襲的参照回数計測)(Detached Counted Body (non-intrusive reference couting))]]
# [[/封筒・便箋(Envelope Letter)/]]
# [[/代数的階層(Algebraic Hierarchy)/]] {{進捗|75%|2008-06-28}}
# [[/仮想コンストラクタ(Virtual Constructor)/]] {{進捗|75%|2008-06-29}}
# [[/具象データ型(Concrete Data Type)/]]
# [[/非仮想インタフェース(Non-Virtual Interface)/]]
# [[/名前付きコンストラクタ(Named Constructor)/]]
# [[/名前付きパラメータ(Named Parameter)/]]
# [[/多態的例外(Polymorphic Exception)/]]
# [[/public な多重定義非仮想関数による protected な非多重定義仮想関数の呼び出し(Public Overloaded Non-Virtuals Call Protected Non-Overloaded Virtuals)/]]
# [[/仮想フレンド関数(Virtual Friend Function)/]]
# [[/SFINAE/]]
# [[/置き換え失敗はエラーにあらず(Substitution Failure Is Not An Error)/]]
# [[/高速 Pimpl(Fast Pimpl)/]]
# [[/タグによる分配(Tag Dispatching)/]]
# [[/Enable if/]]
# [[/特性(Traits)/]]
# [[/非メンバ非フレンド関数(Non-member Non-friend Function)/]]
# [[/Barton-Nackman トリック(Barton-Nackman trick)/]]
# [[/Type Generator/]]
# [[/Object Generator/]]
# [[/名前付きテンプレートパラメータ(Named Template Parameters)/]]
# [[/Adapter Template/]]
# [[/Storage Class Tracker/]]
# [[/Fake Vtable/]]
# [[/Overload Set Creation/]]
# [[/Address Of/]]
# [[/Compile Time Control Structures/]]
# [[/Type Selection/]]
# [[/Temporary Base Class/]]
# [[/Computational Constructor/]]
# [[/型安全な enum(Type Safe Enum)/]]
# [[/Attach by Initialization/]]
# [[/Object Template/]]
# [[/Non-member get()/]]
# [[/Named External Argument/]]
# [[/Forward Declare First/]]
# [[/Function Object/]]
# [[/Examplar/]]
# [[/ポリシーに基づくクラス設計(Policy-based Class Design)/]]
# [[/Boost mutant/]]
# [[/Multiple Member Initialization/]]
# [[/Friendship and the Attorney-Client/]]
# [[/Trailing Parens for Method Chaining for Named parameter/]]
# [[/Final Class/]]
# [[/Copy-on-write/]]
# [[/Shortening Long Template Names/]]
# [[/Export Gurad Macro/]]
 
== References ==
<references/>
<br/>
 
{{stub}}
 
[[en:More_C++_Idioms]]
 
[[Category:C++| ]]
[[Category:{{PAGENAME}}| ]]