{"id":6196,"date":"2024-05-13T01:28:17","date_gmt":"2024-05-12T16:28:17","guid":{"rendered":"https:\/\/k.foolslab.net\/dailyreport\/?p=6196"},"modified":"2024-05-13T01:28:18","modified_gmt":"2024-05-12T16:28:18","slug":"2024-5-12","status":"publish","type":"post","link":"https:\/\/k.foolslab.net\/dailyreport\/2024-5-12\/","title":{"rendered":"2024\/5\/12(\u65e5)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">cpprefjp\u3092\u8aad\u307f\u9032\u3081\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u53ef\u5909\u5f15\u6570\u304c\u7a7a\u3067\u306a\u3044\u5834\u5408\u306e\u30c8\u30fc\u30af\u30f3\u7f6e\u63db<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30de\u30af\u30ed\u30e1\u30bf\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u6163\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u53ef\u5909\u5f15\u6570\u30de\u30af\u30ed\u3082\u4f7f\u3063\u305f\u3053\u3068\u304c\u306a\u3044\u304c\u3001\u4f7f\u3044\u3053\u306a\u305b\u3070\u4fbf\u5229\u305d\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u53ef\u5909\u30b5\u30a4\u30ba\u3092\u3082\u3064\u30b3\u30f3\u30c6\u30ca\u306econstexpr\u5316<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3064\u3044\u306b\u3001\u3068\u3044\u3063\u305f\u611f\u3058\u3002\u3053\u308c\u306e\u305f\u3081\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306enew\/delete\u3092\u8a31\u53ef\u3057\u305f\u3068\u3044\u3046\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u78ba\u4fdd\u3057\u305f\u30e1\u30e2\u30ea\u3092\u5b9f\u884c\u6642\u306b\u6301\u3061\u8d8a\u3059\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u300d\u3068\u3044\u3046\u3053\u3068\u3092\u4e00\u77ac\u5f53\u305f\u308a\u524d\u3060\u308d\uff01\uff01\u3068\u601d\u3063\u305f\u304c\u3001\u3088\u304f\u8003\u3048\u305f\u3089\u305d\u308c\u306f\u3064\u307e\u308a\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u4f5c\u6210\u3057\u305fvector\u3084string\u306e\u5024\u3092\u5b9f\u884c\u6642\u306b\u6301\u3063\u3066\u3053\u308c\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3060\u3002\u3053\u308c\u306f\u305d\u308c\u306a\u308a\u306b\u75db\u3044\u5236\u7d04\u3067\u3042\u308b\u3002\u3064\u307e\u308avector\u3084string\u3092\u8a08\u7b97\u904e\u7a0b\u3068\u3057\u3066\u6301\u3063\u3066\u6700\u7d42\u7684\u306bint\u3084bool\u306e\u3088\u3046\u306a\u5024\u3060\u3051\u4f5c\u308b\u3053\u3068\u306e\u307f\u304c\u8a31\u3055\u308c\u3066\u3044\u308b\u8a33\u3060\u3002\u3046\u30fc\u30fc\u30fc\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u9a13\u3057\u3066\u307f\u305f\u3089\u5b9f\u969b\u3001vector\u3084string\u3067\u9069\u5f53\u306a\u5909\u6570\u3092\u4f5c\u3063\u3066\u305d\u306e\u30b5\u30a4\u30ba\u3092\u8fd4\u3059constexpr\u95a2\u6570\u306a\u3069\u306f\u8a31\u3055\u308c\u305f\u304c\u3001vector\u3084string\u305d\u306e\u3082\u306e\u3092\u8fd4\u3059\u306e\u306f\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002\u4ed5\u69d8\u901a\u308a\u3060\u3002<code>string::c_str()<\/code>\u3092\u8fd4\u3059\u306e\u3082\u30a2\u30a6\u30c8\u3060\u3063\u305f\u3002\u305d\u308a\u3083\u305d\u3046\u3060\u3088\u306d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5373\u6642\u95a2\u6570<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>consteval<\/code>\u3001\u5642\u306f\u805e\u3044\u3066\u3044\u305f\u306e\u3060\u304c\u3042\u307e\u308a\u5b9f\u614b\u3092\u77e5\u3089\u306a\u304b\u3063\u305f\u3002\u601d\u3063\u305f\u3088\u308a\u5185\u5bb9\u306f\u7c21\u5358\u3060\u3063\u305f\u3002<code>constexpr<\/code>\u304c\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u8a08\u7b97\u3092\u300c\u53ef\u80fd\u306a\u3089\u6c42\u3081\u308b\u300d\u306e\u306b\u5bfe\u3057\u3001<code>consteval<\/code>\u306f\u300c\u7d76\u5bfe\u306b\u5f37\u5236\u3055\u305b\u308b\u300d\u306e\u3060\u3002\u51fa\u6765\u306a\u3044\u306a\u3089\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u521d\u671f\u5316\u5f0f\u3092\u3068\u3082\u306a\u3046\u7bc4\u56f2for\u6587<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3042\u3093\u307e\u308a\u610f\u8b58\u3057\u305f\u3053\u3068\u304c\u7121\u304b\u3063\u305f\u304c\u3001\u3061\u3083\u3093\u3068\u4f7f\u3048\u3070\u5f37\u305d\u3046\u3002\u7279\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3082\u6b32\u3057\u3044\u30b1\u30fc\u30b9\u3067\u306e\u66f8\u304d\u65b9\u306f\u3060\u3044\u3076\u30a2\u30ea\u3002<s>\u3057\u304b\u3057\u3001\u540c\u6642\u306b\u578b\u306e\u9055\u3046\u8907\u6570\u306e\u5909\u6570\u3092\u5ba3\u8a00\u51fa\u6765\u306a\u3044\u306e\u306f\u3061\u3087\u3063\u3068\u6b8b\u5ff5\u304b\u3082\uff1f\u305d\u308c\u306f\u666e\u901a\u306efor\u3084if\u3001switch\u3067\u3082\u305d\u3046\u3060\u304c\u3002<\/s>\u69cb\u9020\u5316\u675f\u7e1b\u4f7f\u3048\u3070\u3044\u3051\u308b\u3044\u3051\u308b\uff01\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5165\u308c\u5b50\u540d\u524d\u7a7a\u9593\u5b9a\u7fa9\u3067\u306e\u30a4\u30f3\u30e9\u30a4\u30f3\u540d\u524d\u7a7a\u9593<a href=\"https:\/\/cpprefjp.github.io\/lang\/cpp20.html\"><\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3042\u308c\u3070\u4fbf\u5229\u3067\u3042\u308d\u3046\u3061\u3087\u3044\u4fbf\u5229\u6a5f\u69cb\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e38\u30ab\u30c3\u30b3\u306e\u5024\u30ea\u30b9\u30c8\u304b\u3089\u306e\u96c6\u6210\u4f53\u521d\u671f\u5316\u3092\u8a31\u53ef<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u96c6\u6210\u4f53\u521d\u671f\u5316\u3092\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306e\u5f62\u3067\u3082\u3084\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3001\u3068\u3044\u3046\u98a8\u306b\u601d\u3048\u3070\u3044\u3044\u306e\u3060\u308d\u3046\u304b\u3002\u3057\u304b\u3057\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u751f\u6210\u3055\u308c\u3066\u3044\u308b\u8a33\u3067\u3082\u306a\u3044\u3089\u3057\u3044\u3002\u4e00\u69d8\u521d\u671f\u5316\u306f\u4f7f\u3046\u306e\u306f\u96e3\u3057\u304f\u306a\u3044\u304c\u7acb\u3061\u4f4d\u7f6e\u304c\u96e3\u3057\u3059\u304e\u3066\u4eca\u4e00\u3064\u6574\u7406\u3057\u304d\u308c\u3066\u3044\u306a\u3044\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u69cb\u9020\u4f53\u306e\u521d\u671f\u5316\n<ul class=\"wp-block-list\">\n<li>\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u547c\u3073\u51fa\u3057\u306b\u3088\u308b\u521d\u671f\u5316<\/li>\n\n\n\n<li>\u4e00\u69d8\u521d\u671f\u5316\n<ul class=\"wp-block-list\">\n<li>\u6ce2\u304b\u3063\u3053\u306b\u3088\u308b\u3082\u306e<\/li>\n\n\n\n<li>\u4e38\u304b\u3063\u3053\u306b\u3088\u308b\u3082\u306e<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u69cb\u9020\u4f53\u306e\u521d\u671f\u5316\u306e\u547c\u3073\u51fa\u3057\n<ul class=\"wp-block-list\">\n<li>\u6ce2\u304b\u3063\u3053\n<ul class=\"wp-block-list\">\n<li>\u4e00\u69d8\u521d\u671f\u5316<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u4e38\u304b\u3063\u3053\n<ul class=\"wp-block-list\">\n<li>\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u547c\u3073\u51fa\u3057<\/li>\n\n\n\n<li>\u4e00\u69d8\u521d\u671f\u5316<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e00\u8cab\u6bd4\u8f03<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5642\u306b\u306f\u805e\u3044\u3066\u3044\u3066\u77e5\u3063\u3066\u3044\u305f\u3002\u4f7f\u3063\u305f\u3053\u3068\u306f\u306a\u3044\u3002\u9806\u5e8f\u306e\u5b9a\u7fa9\u304c\u91cd\u8981\u306b\u306a\u308b\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u305f\u3053\u3068\u304c\u7121\u3044\u3002\u6570\u5b66\u7cfb\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u958b\u767a\u3068\u304b\u3060\u3068\u5b09\u3057\u3044\u306e\u3060\u308d\u3046\u304b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30e9\u30e0\u30c0\u5f0f\u306e\u521d\u671f\u5316\u30ad\u30e3\u30d7\u30c1\u30e3\u3067\u306e\u30d1\u30c3\u30af\u5c55\u958b\u3092\u8a31\u53ef<a href=\"https:\/\/cpprefjp.github.io\/lang\/cpp20.html\"><\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3088\u304f\u5206\u304b\u3089\u306a\u3044\u7406\u7531\u3067\u4eca\u307e\u3067\u30c0\u30e1\u3068\u3055\u308c\u3066\u3044\u305f\u304c\u3001\u3088\u304f\u5206\u304b\u3089\u306a\u3044\u7406\u7531\u3067\u3060\u304c\u4eca\u306f\u9055\u3046\uff01\uff01\u30ae\u30e5\u30c3\uff01\uff01\u3068\u306a\u3063\u305f\u3089\u3057\u3044\u3002CWG1760\u3068\u3084\u3089\u3092\u8aad\u3081\u3070\u5206\u304b\u308b\u3088\u3046\u3060\u3002\u3044\u305a\u308c\u8aad\u3080\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30e9\u30e0\u30c0\u5f0f\u306e\u30ad\u30e3\u30d7\u30c1\u30e3\u3068\u3057\u3066[=, this]\u3092\u8a31\u53ef\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u7d14\u7c8b\u306a\u53ef\u8aad\u6027\u306e\u5411\u4e0a\u306a\u3093\u3060\u3002\u78ba\u304b\u306b\u8a00\u308f\u308c\u3066\u307f\u308c\u3070this\u3092\u30ad\u30e3\u30d7\u30c1\u30e3\u3059\u308b\u306e\u304b\u3057\u306a\u3044\u306e\u304b\u304c\u3071\u3063\u3068\u898b\u5206\u304b\u3089\u306a\u3044\u306e\u306f\u82e5\u5e72\u30a4\u30e4\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30e6\u30fc\u30b6\u30fc\u5ba3\u8a00\u3057\u305f\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u6301\u3064\u30af\u30e9\u30b9\u306e\u96c6\u6210\u4f53\u521d\u671f\u5316\u3092\u7981\u6b62<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6cd5\u306e\u629c\u3051\u7a74\u3092\u585e\u3044\u3060\u611f\u3058\u306e\u3088\u3046\u3060\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>cpprefjp\u3092\u8aad\u307f\u9032\u3081\u305f\u3002 \u53ef\u5909\u5f15\u6570\u304c\u7a7a\u3067\u306a\u3044\u5834\u5408\u306e\u30c8\u30fc\u30af\u30f3\u7f6e\u63db \u30de\u30af\u30ed\u30e1\u30bf\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u6163\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u53ef\u5909\u5f15\u6570\u30de\u30af\u30ed\u3082\u4f7f\u3063\u305f\u3053\u3068\u304c\u306a\u3044\u304c\u3001\u4f7f\u3044\u3053\u306a\u305b\u3070\u4fbf\u5229\u305d\u3046\u3002 \u53ef\u5909\u30b5\u30a4\u30ba\u3092\u3082\u3064\u30b3\u30f3\u30c6\u30ca\u306econstexpr\u5316  &hellip; <\/p>\n<div><a href=\"https:\/\/k.foolslab.net\/dailyreport\/2024-5-12\/\" class=\"more\">Read more &raquo;<span class=\"screen-reader-text\"> &#8220;2024\/5\/12(\u65e5)&#8221;<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6196","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/6196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/comments?post=6196"}],"version-history":[{"count":1,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/6196\/revisions"}],"predecessor-version":[{"id":6197,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/6196\/revisions\/6197"}],"wp:attachment":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/media?parent=6196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/categories?post=6196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/tags?post=6196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}