- 257 名前:デフォルトの名無しさん mailto:sage [2008/04/12(土) 19:12:27 ]
- そういう思い込み書き込むスレじゃないからw
マ板行けよ 新しい関数型の記法です。->を使う。 www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2541.htm 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);
|

|