{"id":6306,"date":"2024-06-01T02:51:43","date_gmt":"2024-05-31T17:51:43","guid":{"rendered":"https:\/\/k.foolslab.net\/dailyreport\/?p=6306"},"modified":"2024-06-01T02:51:43","modified_gmt":"2024-05-31T17:51:43","slug":"2024-5-31","status":"publish","type":"post","link":"https:\/\/k.foolslab.net\/dailyreport\/2024-5-31\/","title":{"rendered":"2024\/5\/31(\u91d1)"},"content":{"rendered":"\n<p>cpprefjp\u3092\u8aad\u307f\u9032\u3081\u305f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">&lt;source_location&gt;<\/h3>\n\n\n\n<p>\u30c7\u30d0\u30c3\u30b0\u306b\u8d85\u5f79\u7acb\u3061\u305d\u3046\u306a\u7d20\u6674\u3089\u3057\u3044\u6a5f\u80fd\u3002\u3064\u3044\u306b__LINE__\u307f\u305f\u3044\u306a\u3060\u308b\u3044\u3084\u3064\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u306a\u304f\u306a\u308b\u3002C++20\u304b\u3089\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">source_location<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>current: \u73fe\u5728\u4f4d\u7f6e\u3092\u8868\u3059\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u53d6\u5f97\u3002\u57fa\u672c\u7684\u306b\u306f\u547c\u3073\u51fa\u3057\u305f\u884c\u3068\u4e00\u81f4\u3059\u308b\u304c\u3001\u6b63\u3057\u304f\u306f\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u521d\u671f\u5316\u3055\u308c\u308b\u300d<\/li>\n\n\n\n<li>constructor: current()\u3092\u4f7f\u308f\u305a\u3068\u3082\u3001\u7121\u306esource_location\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b\u3053\u3068\u3082\u53ef\u80fd\u3089\u3057\u3044\u3002type_info\u306f\u8a31\u53ef\u3057\u3066\u306a\u304b\u3063\u305f\u306e\u306b&#8230;<\/li>\n\n\n\n<li>line, column, file_name, function_name: column\u307e\u3067\u3042\u308b\u306e\u306f\u3059\u3054\u3044\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">&lt;exception&gt;<\/h3>\n\n\n\n<p>stdexcept\u3068\u5225\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u306f\u3001\u5404\u7a2e\u306e\u4f8b\u5916vs\u4f8b\u5916\u306e\u57fa\u790e\u7684\u306a\u6a5f\u80fd\u3068\u3044\u3046\u9055\u3044\u304b\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>exception\n<ul class=\"wp-block-list\">\n<li>constructor, operator=: \u3055\u3059\u304c\u306b\u4f8b\u5916\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3060\u304b\u3089\u304bnoexcept\u304c\u4ed8\u3044\u3066\u3044\u308b\u3002<\/li>\n\n\n\n<li>what: virtual\u304c\u4ed8\u3044\u3066\u3044\u308b\u3002\u305d\u308a\u3083\u305d\u3046\u3002<\/li>\n\n\n\n<li>destructor: \u304a\u524d\u306fnoexcept\u3064\u3044\u3066\u306a\u3044\u306e\u304b\u3088\uff01\uff01\u306a\u3093\u3067\uff1f<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>bad_exception: \u52d5\u7684\u4f8b\u5916\u4ed5\u69d8\u306e\u524a\u9664\u306e\u5f71\u97ff\u3092(\u3084\u3084)\u53d7\u3051\u3066\u3044\u308b\u6a21\u69d8\u3002\u4eca\u306f\u4f8b\u5916\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30d4\u30fc\u5931\u6557\u6642\u306e\u307f\u51fa\u3066\u304f\u308b\u3001\u306e\u304b\uff1f<\/li>\n\n\n\n<li>set_unexpected, get_unexpected, unexpected: \u52d5\u7684\u4f8b\u5916\u4ed5\u69d8\u304c\u524a\u9664\u3055\u308c\u305f\u306e\u3067\u304a\u5f79\u5fa1\u514d\u306b\u3002<\/li>\n\n\n\n<li>terminate, set_terminate, get_terminate: abort\u3068\u306e\u9055\u3044\u3092\u521d\u3081\u3066\u8a8d\u8b58\u3057\u305f\u3002\u4f8b\u5916\u51e6\u7406\u3067\u304a\u304b\u3057\u306a\u3053\u3068\u304c\u8d77\u3053\u3063\u305f\u5834\u5408\u5c02\u7528\u306e\u7570\u5e38\u7d42\u4e86\u3068\u3044\u3046\u7acb\u3061\u4f4d\u7f6e\u3089\u3057\u3044\u3002\u3057\u304b\u3057\u3053\u308c\u3001\u57fa\u672c\u7684\u306b\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u547c\u3073\u51fa\u3055\u308c\u308b\u3082\u306e\u306a\u3089\u30e6\u30fc\u30b6\u30fc\u304cterminate()\u3092\u547c\u3073\u51fa\u305b\u308b\u610f\u5473\u306f\u3042\u308b\u306e\u304b\uff1f<\/li>\n\n\n\n<li>nested_exception: \u3061\u3087\u3063\u3068\u5206\u304b\u308a\u306b\u304f\u3044\u304c\u3001\u4f8b\u5916\u51e6\u7406\u4e2d\u306b\u3053\u308c\u3092\u6295\u3052\u308c\u3070\u73fe\u5728\u51e6\u7406\u4e2d\u306e\u4f8b\u5916\u3092\u5185\u5305\u3057\u3066\u304f\u308c\u308b\u3089\u3057\u3044\u3002\u3068\u3044\u3046\u3053\u3068\u3067nested_exception\u3092\u7d99\u627f\u3057\u305f\u81ea\u4f5c\u4f8b\u5916\u30af\u30e9\u30b9\u3092\u4f5c\u308c\u3070\u3001\u305d\u308c\u3092\u4f8b\u5916\u51e6\u7406\u4e2d\u306b\u6295\u3052\u308b\u3053\u3068\u3067\u81ea\u52d5\u7684\u306b\u305d\u3053\u3067\u672c\u6765\u51e6\u7406\u3055\u308c\u3066\u3044\u305f\u4f8b\u5916\u306e\u60c5\u5831\u3092\u4fdd\u6301\u3067\u304d\u308b\u3068\u3044\u3046\u8a33\u3060\u3002\u5358\u306b\u5225\u306e\u4f8b\u5916\u3092\u518d\u30b9\u30ed\u30fc\u3059\u308b\u3088\u308a\u3082\u6b63\u78ba\u306a\u30a8\u30e9\u30fc\u60c5\u5831\u3092\u547c\u3073\u51fa\u3057\u5143\u306b\u5f15\u304d\u7d99\u3052\u308b\u3002<\/li>\n\n\n\n<li>uncaught_exception, uncaught_exceptions: \u4eca\u4f8b\u5916\u51e6\u7406\u4e2d\u304b\u3069\u3046\u304b\u306a\u3093\u3066\u5927\u4f53\u306f\u6587\u8108\u3067\u5206\u304b\u308b\u3060\u308d\u3046\u3057\u3001\u5206\u304b\u3089\u306a\u3044\u6587\u8108\u3067\u306f\u4f8b\u5916\u51e6\u7406\u4e2d\u304b\u3069\u3046\u304b\u306a\u3093\u3066\u77e5\u3063\u3066\u3082\u4f55\u3082\u5909\u308f\u3089\u306a\u3044\u306e\u3067\u306f\uff1f\uff1f\u307f\u305f\u3044\u306a\u6c17\u304c\u3059\u308b\u304c\u3001\u3053\u308c\u304c\u5fc5\u8981\u306b\u306a\u308b\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u3082\u3042\u308b\u3093\u3060\u308d\u3046\u304b\u3002\u30cd\u30c3\u30c8\u3067\u51fa\u3066\u304d\u305f\u4f8b\u3068\u3057\u3066\u306f\u3001\u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u306b\u5f79\u7acb\u3066\u308b\u3068\u3044\u3046\u306e\u306f1\u3064\u3042\u308b\u3088\u3046\u3060\u3002<\/li>\n\n\n\n<li>exception_ptr: \u4f8b\u5916\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u591a\u30b9\u30ec\u30c3\u30c9\u9593\u306a\u3069\u3067\u6301\u3061\u307e\u308f\u308b\u306e\u306b\u4f7f\u3048\u308b\u3089\u3057\u3044\u3002\u30b5\u30d6\u30b9\u30ec\u30c3\u30c9\u3067\u4f8b\u5916\u304c\u8d77\u304d\u3066\u7570\u5e38\u7d42\u4e86\u3059\u308b\u969b\u306b\u30e1\u30a4\u30f3\u30b9\u30ec\u30c3\u30c9\u3067\u30ed\u30b0\u3092\u5410\u304f\u3001\u307f\u305f\u3044\u306a\u30b1\u30fc\u30b9\u3067\u306f\u4f7f\u3048\u308b\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/li>\n\n\n\n<li>current_exception: \u3053\u308c\u3082uncaught_exceptions\u540c\u69d8\u300c\u77e5\u3063\u3066\u3069\u3046\u3059\u308b\u300d\u611f\u304c\u3042\u308b\u304c\u3001\u3069\u3046\u3084\u3089\u3053\u308c\u3092\u4f7f\u3046\u3068exception_ptr\u306b\u304f\u308b\u307e\u308c\u308b\u3089\u3057\u3044\u3002<\/li>\n\n\n\n<li>rethrow_exception: throw;\u3058\u3083\u3044\u304b\u3093\u306e\u304b\uff1f\uff1f\u3068\u601d\u3046\u304c\u3001\u4f8b\u5916\u3092exception_ptr\u3067\u6301\u3061\u307e\u308f\u3063\u3066\u3044\u305f\u5834\u5408\u306f\u3053\u308c\u304c\u597d\u90fd\u5408\u306a\u306e\u304b\u3002<\/li>\n\n\n\n<li>make_exception_ptr: \u306f\u3044<\/li>\n\n\n\n<li>throw_with_nested: \u666e\u901a\u306bnested_exception\u3092\u7d99\u627f\u3057\u305f\u30af\u30e9\u30b9\u3092\u30b9\u30ed\u30fc\u3059\u308b\u306e\u3067\u3088\u304f\u306a\u3044\u304b\u3002<\/li>\n\n\n\n<li>rethrow_if_nested: \u5916\u5074\u306e\u4f8b\u5916\u3092\u51e6\u7406\u3057\u305f\u4e0a\u3067\u3001\u51e6\u7406\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u5185\u5074\u306e\u3082\u306e\u304c\u3042\u308c\u3070\u30b9\u30ed\u30fc\u3001\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3060\u308d\u3046\u304c\u3001\u305d\u306e\u5834\u3067\u51e6\u7406\u3057\u3066\u3044\u308b\u306e\u306b\u308f\u3056\u308f\u3056\u4e0a\u306b\u51e6\u7406\u3092\u518d\u5ea6\u6295\u3052\u308b\u3053\u3068\u304c\u3042\u308b\u3060\u308d\u3046\u304b\uff1f\u82e5\u5e72\u7591\u554f\u306b\u601d\u3046\u304c\u3001\u300c\u3042\u308b\u7279\u5b9a\u306e\u4f8b\u5916\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d7\u3051\u53d6\u3063\u3066\u305d\u308c\u5c02\u7528\u306e\u5f8c\u51e6\u7406\u3092\u3059\u308b\u300d\u3068\u3044\u3046catch\u7bc0\u3067\u3042\u308c\u3070\u5272\u3068\u7d0d\u5f97\u304c\u884c\u304f\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u8aad\u3093\u3067\u307f\u3066\u521d\u3081\u3066\u8a8d\u8b58\u3057\u305f\u304c\u3001\u300c\u4f8b\u5916\u306e\u5165\u308c\u5b50\u300d\u300cexception_ptr\u306b\u3088\u308b\u4f8b\u5916\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u6301\u3061\u56de\u308a\u300d\u3068\u3044\u3046\u306e\u304c\u7d50\u69cb\u91cd\u8981\u306a\u4f4d\u7f6e\u3065\u3051\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u306b\u898b\u3048\u308b\u3002\u81ea\u5206\u306f\u304b\u306a\u308a\u96d1\u306a\u30a8\u30e9\u30fc\u51e6\u7406\u3057\u304b\u66f8\u3044\u305f\u3053\u3068\u304c\u306a\u3044\u306e\u3067\u4f7f\u3063\u305f\u3053\u3068\u304c\u7121\u304b\u3063\u305f\u304c\u3001\u6b63\u78ba\u306a\u30a8\u30e9\u30fc\u60c5\u5831\u3092\u4f1d\u64ad\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u5fc5\u9808\u306a\u306e\u3060\u308d\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>cpprefjp\u3092\u8aad\u307f\u9032\u3081\u305f\u3002 &lt;source_location&gt; \u30c7\u30d0\u30c3\u30b0\u306b\u8d85\u5f79\u7acb\u3061\u305d\u3046\u306a\u7d20\u6674\u3089\u3057\u3044\u6a5f\u80fd\u3002\u3064\u3044\u306b__LINE__\u307f\u305f\u3044\u306a\u3060\u308b\u3044\u3084\u3064\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u306a\u304f\u306a\u308b\u3002C++20\u304b\u3089\u3002 source_loc &hellip; <\/p>\n<div><a href=\"https:\/\/k.foolslab.net\/dailyreport\/2024-5-31\/\" class=\"more\">Read more &raquo;<span class=\"screen-reader-text\"> &#8220;2024\/5\/31(\u91d1)&#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-6306","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/6306","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=6306"}],"version-history":[{"count":3,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/6306\/revisions"}],"predecessor-version":[{"id":6309,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/6306\/revisions\/6309"}],"wp:attachment":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/media?parent=6306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/categories?post=6306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/tags?post=6306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}