<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>goyoki</author_name>
  <author_url>https://blog.hatena.ne.jp/goyoki/</author_url>
  <blog_title>千里霧中</blog_title>
  <blog_url>https://goyoki.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>C++20から導入されたコンセプト（concepts）は、テンプレート型のパラメータの制約を実現する、型制約の言語機能です。 コンセプトを使うと、従来のSFINAEなどのテクニックと比べて、簡潔に型の制約を記述できるようになるほか、制約違反時のエラーメッセージを格段に読みやすくできます。 ただコンセプトによって、型の制約をより複雑に書けるようになる側面があります。そこで需要が増えるのが、型制約のテストです。複雑なコンセプトを書けばプログラミング中に確認を行いたくなりますし、また例えばライブラリなどの汎用的なAPIでは型制約は重要な品質保証の対象になります。 コンセプトのテストの記述 コンセプト…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgoyoki.hatenablog.com%2Fentry%2F2022%2F05%2F29%2F172240&quot; title=&quot;C++ コンセプト（concepts）の型制約のテスト - 千里霧中&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>2022-05-29 17:22:40</published>
  <title>C++ コンセプト（concepts）の型制約のテスト</title>
  <type>rich</type>
  <url>https://goyoki.hatenablog.com/entry/2022/05/29/172240</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
