{"image_url":null,"author_name":"osyo-manga","provider_name":"Hatena Blog","title":"\u3010\u4e00\u4eba C++20 Advent Calendar 2019\u3011\u9023\u60f3\u30b3\u30f3\u30c6\u30ca\u306b\u3042\u308b\u8981\u7d20\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3092\u5224\u5b9a\u3059\u308b\u30e1\u30f3\u30d0\u95a2\u6570\u3092\u8ffd\u52a0\u301012\u65e5\u76ee\u3011","version":"1.0","width":"100%","categories":["C++","C++20"],"height":"190","url":"https://secret-garden.hatenablog.com/entry/2019/12/12/000143","blog_url":"https://secret-garden.hatenablog.com/","blog_title":"Secret Garden(Instrumental)","published":"2019-12-12 00:01:43","type":"rich","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2019%2F12%2F12%2F000143\" title=\"\u3010\u4e00\u4eba C++20 Advent Calendar 2019\u3011\u9023\u60f3\u30b3\u30f3\u30c6\u30ca\u306b\u3042\u308b\u8981\u7d20\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3092\u5224\u5b9a\u3059\u308b\u30e1\u30f3\u30d0\u95a2\u6570\u3092\u8ffd\u52a0\u301012\u65e5\u76ee\u3011 - Secret Garden(Instrumental)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u4e00\u4eba C++20 Advent Calendar 2019 12\u65e5\u76ee\u306e\u8a18\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002 \u9023\u60f3\u30b3\u30f3\u30c6\u30ca\u306b\u3042\u308b\u8981\u7d20\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3092\u5224\u5b9a\u3059\u308b\u30e1\u30f3\u30d0\u95a2\u6570\u3092\u8ffd\u52a0 std::map \u306a\u3069\u306e\u9023\u60f3\u30b3\u30f3\u30c6\u30ca\u306b\u3042\u308b\u8981\u7d20\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308b contains() \u30e1\u30f3\u30d0\u95a2\u6570\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002 #include <map> #include <iostream> int main(){ auto data = std::map<char, int> { { 'A', 1 }, { 'J', 11 }, { 'Q', 12 }, // { 'K', 13 } }; if (data.contains('A\u2026","author_url":"https://blog.hatena.ne.jp/osyo-manga/"}