テンプレートあれこれ (3) -- 明示的なインスタンス生成 クラステンプレートでは、メンバ関数は inline として (あるいは直接クラス内で) 定義するのが一般的である。 template<class T> class Foo { public: void hoge( const T* s ) { // s を使った処理 } };... 続きを読む
Todd Veldhuizen <tveldhui@acm.org> Indiana University Computer Science Technical Report # 542 Version 0.4, August 2000 This report summarizes useful techniques for implementing scientific programs in C++, with an emphasis on using templates t... 続きを読む
This is not an introduction or a reference manual to templates. It deals with some of the more complex yet still common problems with templates. Other information Templates are an essential part of modern C++, and any good recent introduction... 続きを読む
This is not an introduction or a reference manual to templates. It deals with some of the more complex yet still common problems with templates. Other information Templates are an essential part of modern C++, and any good recent introduction... 続きを読む
result_ofについて・・・参照result_ofの利用者は大胆に型を訊ねて良い 実際にどのように引数を受け取るかは関数オブジェクトの実装者の自由result_of::typeは常に成功し、デフォルト値(void)を持っている・・・参照引数のない(つまりテンプレートでない)operat... 続きを読む
『プログラミング言語C++』 C.13.6 限定子としてのtemplate メンバ関数テンプレートにおいて、引数から型を推論できない場合template限定子を使うことになるだが、template限定子を使うようなことは稀だろう struct hoge { template T* get() { return 0; } te... 続きを読む
http://d.hatena.ne.jp/faith_and_brave/20080128/1201510970#c1201580416について.昨晩は睡魔に負けてしまいました><書きかけですが,とりあえずこの辺で.そのうちそもそもなぜこんなものが必要なのかと言った所から説明した完全版を書こうと思います.usi... 続きを読む
decode_html 対応しているバージョン 3.1, 3.2, 3.3, Enterprise 1.0, Enterprise 1.5 利用方法 decode_html="1" 解説 1を設定すると、タグの値に含まれるすべてのHTMLエンティティをデコードします。たとえば foo<br>は、デコードされて foo<br>に変換されます... 続きを読む
MTBlogs システムに登録されているブログの一覧を表示するためのコンテナ・タグです。 対応しているバージョン 3.1, 3.2, 3.3, Enterprise 1.0 利用方法 <MTBlogs> ~ </MTBlogs> アトリビュート blog_ids="all | xx" (Enterprise 1.0のみ有効) 複数のブログ... 続きを読む
Movable Type ユーザマニュアル: テンプレート・タグ « 目次 テンプレート・タグ ブログ・データ エントリーリスト/アーカイブ・ページ コメント コメントのプレビュー アーカイブ・テンプレートとマスター・アーカイブ・インデックス カテゴリー関連のタグ カ... 続きを読む