Metashell The launcher page of the shell has been moved to metashell.org.
Metashell The launcher page of the shell has been moved to metashell.org.
この記事はC++ Advent Calendar 2012の13日目です。 Variadic Templatesとは C++11ではテンプレートで"."を3つ付けることが出来るようになりました、 こんな感じで。 template <class... Ts> これで何が出来るのかというと、0個以上の任意のテンプレート引数を受け取れるようになります。このとき、Tsをテンプレートパックと呼びます。 Variadic Templateはテンプレートクラスと関数テンプレートの両方で使うことが出来ます。 テンプレートクラスの場合 template <class... Ts> class hoge; このように書かかれていれば、 hoge<> hoge< long > hoge< int, short > こんな感じで型を渡すことができるようになります。 また、class...のように型だけでなくint
!!! 5 html(lang="en") head title= pageTitle(car insurance montana) :javascript | if (foo) { | bar() | } body h1 Jade - node template engine #container - if (youAreUsingJade) You are amazing - else Get on it! Get on it! Get on it! Get on it! <!DOCTYPE html> <html lang="en"> <head> <title>Jade</title> <script type="text/javascript"> //<![CDATA[ if (foo) { bar() } //]]> </script> </head> <body> <h1>J
Visual Studio 11(MSVC11) Betaの可変長引数テンプレート(Variadic Templates)対応*1についてメモ。 結論:言語機能としてはサポート一切なし。ただしC++標準ライブラリの一部をマクロでエミュレーション。MSVC12(?)に期待。 MSVC11 C++ライブラリの既定では最大5引数までサポート。マクロ_VARIADIC_MAXを指定することで最大10引数まで伸ばせる。 Simulated variadic templates now accept a maximum of 5 arguments by default, down from 10. To increase this limit, at the cost of compiler speed, define _VARIADIC_MAX project-wide between 5 and
template template total specialization - Stack Overflow 使う機会はあまりないでしょうけど。 #include <vector> #include <list> template <template <class...> class Container> struct X { Container<int> c; }; template <> struct X<std::vector> { std::vector<std::string> c; }; int main() { X<std::list> ls; ls.c.push_back(3); X<std::vector> v; v.c.push_back("hello"); }
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く