「More C++ Idioms/throw しない swap(Non-throwing swap)」の版間の差分

削除された内容 追加された内容
Yak! (トーク | 投稿記録)
48 行
<source lang="cpp">
namespace Orange { // String の名前空間
template <>
void swap (String & s1, String & s2) throw ()
{
56 ⟶ 55行目:
namespace std {
template <>
void swap (Orange::String & s1, Orange::String & s2) throw ()
{
s1.swap (s2);