08/04/12 19:12:27
そういう思い込み書き込むスレじゃないからw
マ板行けよ
新しい関数型の記法です。->を使う。
URLリンク(www.open-std.org)
typedef int IFUNC(int);
IFUNC* fpif(int);
↓
auto fpif(int)->int(*)(int)
template <class T, class U> decltype((*(T*)0)+(*(U*)0)) add(T t, U u);
↓
template <class T, class U> auto add(T t, U u) -> decltype(t+u);