2009-05-11から1日間の記事一覧

decltypeとresult_ofの違い

C++

comp.std.c++ - C++0x: result_of and decltype 関数の戻り値の型は、decltype(f(args))とstd::result_of::typeという2つの方法で取得できるけど、 これらに違いはあるのだろうか。両方必要なのだろうか。と、Scott Meyersから質問が出てました。 decltypeと…