C++0x 3
at TECH
257:デフォルトの名無しさん
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);
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
5383日前に更新/166 KB
担当:undef