<?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>C++1z</anon>
  </categories>
  <description>C++1z(C++17)において文字列リテラルから文字列ビューstd::string_viewへ変換する場合、暗黙の型変換ではなくユーザ定義リテラル&quot;&quot;svの明示利用が望ましい。 string_viewクラスはC文字列(const char*)からの非explicit変換コンストラクタを提供する。 string_viewユーザ定義リテラルはstd::literals::string_view_literals名前空間で定義される。*1 計算量(complexity)：暗黙コンストラクタでは文字列リテラル長に比例 O(N) するが、ユーザ定義リテラル&quot;&quot;svでは定数時間 O(1) が保証される。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20171115%2Fp1&quot; title=&quot;文字列リテラルからのstd::string_view構築 - 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>2017-11-15 00:00:00</published>
  <title>文字列リテラルからのstd::string_view構築</title>
  <type>rich</type>
  <url>https://yohhoy.hatenadiary.jp/entry/20171115/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
