{"height":"190","description":"C++17\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306f\u300c\u578b\u304c\u7570\u306a\u308b\u5909\u6570\u9593\u3067\u306e\u5024\u4ea4\u63db(swap)\u300d\u53ef\u80fd\u304b\u5426\u304b\u3092\u5224\u5b9a\u3059\u308b\u30e1\u30bf\u95a2\u6570std::is_(nothrow_)swappable_with<T, U>\u304c\u5b58\u5728\u3059\u308b\u3002\u4e00\u822c\u7684\u306b\u306f\u5024\u4ea4\u63db\u64cd\u4f5c\u306f\u540c\u4e00\u578b\u5909\u6570\u9593(swap(T&, T&))\u3067\u884c\u308f\u308c\u308b\u304c\u3001\u30d7\u30ed\u30ad\u30b7\u578b(proxy)\u306e\u3088\u3046\u306a\u7279\u6b8a\u30b1\u30fc\u30b9\u306b\u304a\u3044\u3066\u7570\u578b\u5909\u6570\u9593\u3067\u306e\u5024\u4ea4\u63db(swap(T, U))\u304c\u5fc5\u8981\u3068\u306a\u308b\u305f\u3081\u3002*1 // <type_traits>\u30d8\u30c3\u30c0 namespace std { template <class T, class U> struct is_swappable_with; template <class T, c\u2026","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20190321%2Fp1\" title=\"swap(T, U)\u3068is_swappable_with&lt;T, U&gt;\u3068vector&lt;bool&gt; - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/yohhoy/","blog_url":"https://yohhoy.hatenadiary.jp/","published":"2019-03-21 00:00:00","type":"rich","author_name":"yohhoy","provider_url":"https://hatena.blog","version":"1.0","categories":["C++","gcc","Clang","MSVC"],"title":"swap(T, U)\u3068is_swappable_with<T, U>\u3068vector<bool>","url":"https://yohhoy.hatenadiary.jp/entry/20190321/p1","blog_title":"yohhoy\u306e\u65e5\u8a18"}