- 876 名前:デフォルトの名無しさん mailto:sage [2008/06/18(水) 00:51:43 ]
- concept HasSwapFunction<typename T> { T& swap(T&) throw (); }
template <typename T> requires HasSwapFunction<T> inline void swap(T& x, T& y) throw () { x.swap(y); } template <typename T> inline void swap(T& x, T& y) throw () { std::swap(x, y); } ↑ こういう感じのってダメなの?よくわからんけど…
|

|