<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yohhoy</author_name>
  <author_url>https://blog.hatena.ne.jp/yohhoy/</author_url>
  <blog_title>yohhoyの日記</blog_title>
  <blog_url>https://yohhoy.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>gcc</anon>
    <anon>Clang</anon>
    <anon>MSVC</anon>
  </categories>
  <description>C++17標準ライブラリには「型が異なる変数間での値交換(swap)」可能か否かを判定するメタ関数std::is_(nothrow_)swappable_with&lt;T, U&gt;が存在する。一般的には値交換操作は同一型変数間(swap(T&amp;, T&amp;))で行われるが、プロキシ型(proxy)のような特殊ケースにおいて異型変数間での値交換(swap(T, U))が必要となるため。*1 // &lt;type_traits&gt;ヘッダ namespace std { template &lt;class T, class U&gt; struct is_swappable_with; template &lt;class T, c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20190321%2Fp1&quot; title=&quot;swap(T, U)とis_swappable_with&amp;lt;T, U&amp;gt;とvector&amp;lt;bool&amp;gt; - yohhoyの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-03-21 00:00:00</published>
  <title>swap(T, U)とis_swappable_with&lt;T, U&gt;とvector&lt;bool&gt;</title>
  <type>rich</type>
  <url>https://yohhoy.hatenadiary.jp/entry/20190321/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
