{"id":344,"date":"2025-11-02T21:08:38","date_gmt":"2025-11-02T13:08:38","guid":{"rendered":"https:\/\/www.garfield-blog.top\/?p=344"},"modified":"2025-11-02T21:14:03","modified_gmt":"2025-11-02T13:14:03","slug":"c%e7%a8%8b%e5%ba%8f%e8%ae%be%e8%ae%a1","status":"publish","type":"post","link":"https:\/\/www.garfield-blog.top\/?p=344","title":{"rendered":"\u3010\u7f16\u7a0b\u8bed\u8a00\u5b66\u4e60\u3011C++(2) \u7a0b\u5e8f\u8bbe\u8ba1"},"content":{"rendered":"\n<p><strong>\u7b80\u8ff0<\/strong>\uff1a\u8bb0\u5f55<code>C++11<\/code>\u6807\u51c6\u4e0b\u5173\u952e\u5b57\uff0c\u76ee\u524d\u4ec5\u4e3a\u7b80\u7565\u6574\u7406\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    \u90e8\u5206\u5185\u5bb9\u8be6\u7ec6\u5c55\u5f00\u5185\u5bb9\u8fc7\u591a\uff0c\u788d\u4e8e\u6280\u672f\u6c34\u5e73\u548c\u4e2a\u4eba\u7cbe\u529b\u9650\u5236\uff0c\u5f85\u540e\u7eed\u6269\u5c55\u3002<\/code><\/pre>\n\n\n\n<p>\u540e\u7eed\u91cd\u5927\u4fee\u6539\u540c\u6b65\u66f4\u65b0\u7b80\u8ff0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">C++\u5173\u952e\u5b57<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5e38\u89c1C++\u5173\u952e\u5b57<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">asm\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7528\u4e8e\u8c03\u7528\u5185\u8054\u6c47\u7f16\u7a0b\u5e8f\uff0c\u5141\u8bb8\u5728 <code>C++<\/code> \u7a0b\u5e8f\u4e2d\u5d4c\u5165\u6c47\u7f16\u4ee3\u7801<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">auto\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8868\u660e\u53d8\u91cf&#8221;\u81ea\u52a8&#8221;\u5177\u6709\u672c\u5730\u8303\u56f4\uff0c\u5757\u8303\u56f4\u7684\u53d8\u91cf\u58f0\u660e\uff08\u5982<code>for<\/code>\u5faa\u73af\u4f53\u5185\u7684\u53d8\u91cf\u58f0\u660e\uff09\u9ed8\u8ba4\u4e3a<code>auto<\/code>\u5b58\u50a8\u7c7b\u578b<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">bool\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>_BOOL<\/code>\u7c7b\u578b\uff0c8\u4f4d\u6574\u578b\u3002<\/li>\n\n\n\n<li>\u5728C\u8bed\u8a00<code>C89<\/code>\u6807\u51c6\u4e4b\u524d\u5e76\u4e0d\u652f\u6301\u5e03\u5c14\u7c7b\u578b\uff0c<code>C89<\/code>\u4e4b\u540e\u52a0\u5165\u4e86<code>stdbool.h<\/code>\u5934\u6587\u4ef6\uff0c\u5b9a\u4e49\u4e86<code>bool \/ true \/ false<\/code> \u5b8f\u4fbf\u4e8e\u4f7f\u2f64\uff0c\u8981\u6ce8\u610f\u7684\u662fC\u8bed\u8a00\u4e2d\u7684\u5e03\u5c14\u7c7b\u578b\u5b9e\u9645\u4e0a\u662f\u6574\u578b\uff0c\u662f\u4e00\u79cd\u4f2a\u5e03\u5c14\u7c7b\u578b<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">break\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8df3\u51fa\u5faa\u73af\uff0c\u53ef\u4ee5\u7528\u4e8e\u8df3\u51fa<code>for<\/code>\u5faa\u73af\uff0c<code>while<\/code>\u5faa\u73af\uff0c<code>do while<\/code>\u5faa\u73af\uff0c<code>switch<\/code>\u8bed\u53e5<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">case\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7528\u4e8e <code>switch<\/code> \u8bed\u53e5\u4e2d\uff0c\u7528\u4e8e\u5224\u65ad\u4e0d\u540c\u7684\u6761\u4ef6\u7c7b\u578b<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">catch\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>C++<\/code>\u7684\u5f02\u5e38\u5904\u7406\u5173\u952e\u5b57\uff0c\u901a\u5e38<code>catch<\/code> \u548c <code>try<\/code> \u8bed\u53e5\u4e00\u8d77\u7528\u4e8e\u5f02\u5e38\u5904\u7406<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">char\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>char<\/code>\u5b57\u7b26\u7c7b\u578b\uff0c<code>C++<\/code> \u4e2d\u7684\u57fa\u672c\u6570\u636e\u7ed3\u6784\uff0c\u5176\u503c\u4e00\u822c\u4e3a8\u4f4d\u6574\u6570<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">class\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u53ef\u81ea\u5b9a\u4e49\u7684\u4e00\u79cd\u53d8\u91cf\u7c7b\u578b\uff0c\u4e0e\u7ed3\u6784\u4f53\u8054\u5408\u4f53\u7b49\u7c7b\u4f3c\uff0c\u53ef\u4f7f\u7528 <code>class<\/code> \u5173\u952e\u5b57\u58f0\u660e\u4e00\u4e2a\u7c7b<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">const\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>const<\/code>\u610f\u4e3a\u5e38\u91cf\u7684\uff0c\u6240\u4fee\u9970\u7684\u5bf9\u8c61\u6216\u53d8\u91cf\u4e0d\u80fd\u88ab\u6539\u53d8<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">const_cast\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7528\u6765\u53bb\u9664\u590d\u5408\u7c7b\u578b\u4e2d<code>const<\/code>\u548c<code>volatile<\/code>\u5c5e\u6027<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">continue\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>continue<\/code>\u5173\u952e\u5b57\u7528\u4e8e\u5faa\u73af\u7ed3\u6784\u3002\u5b83\u4f7f\u7a0b\u5e8f\u8df3\u8fc7\u4ee3\u7801\u6bb5\u540e\u90e8\u7684\u90e8\u5206\uff0c\u4e0e <code>break<\/code> \u4e0d\u540c\u7684\u662f\uff0c<code>continue<\/code> \u4e0d\u662f\u8fdb\u5165\u4ee3\u7801\u6bb5\u540e\u7684\u90e8\u5206\u6267\u884c\uff0c\u800c\u662f\u91cd\u65b0\u5f00\u59cb\u65b0\u7684\u5faa\u73af<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">decltype\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u82e5\u4ec5\u5e0c\u671b\u5f97\u5230\u7c7b\u578b\uff0c\u800c\u4e0d\u9700\u8981\uff08\u6216\u4e0d\u80fd\uff09\u5b9a\u4e49\u53d8\u91cf\u7684\u65f6\u5019\u5e94\u8be5\u600e\u4e48\u529e\u5462\uff1f <code>C++11<\/code> \u65b0\u589e\u4e86<code>decltype<\/code> \u5173\u952e\u5b57\uff0c\u7528\u6765\u5728\u7f16\u8bd1\u65f6\u63a8\u5bfc\u51fa\u4e00\u4e2a\u8868\u8fbe\u5f0f\u7684\u7c7b\u578b\uff0c<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>  \/\/\u8bed\u6cd5\u683c\u5f0f\u4e3a\n  \/\/\u5176\u4e2d\uff0cexp \u8868\u793a\u4e00\u4e2a\u8868\u8fbe\u5f0f\uff08expression\uff09\n  decltype(exp)\n\n  decltype(f()) sum = x;\n  decltype(cj) x = 0;        \/\/x\u7684\u7c7b\u578b\u662fconst int\n  decltype(cj) y = x;        \/\/y\u7684\u7c7b\u578b\u662fconst int&amp;\uff0cy\u7ed1\u5b9a\u5230\u53d8\u91cfx\n  decltype(cj) z;            \/\/\u9519\u8bef\uff1az\u662f\u4e00\u4e2a\u5f15\u7528\uff0c\u5fc5\u987b\u521d\u59cb\u5316<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">default\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>default<\/code>\u7528\u4e8e <code>switch<\/code> \u8bed\u53e5\u3002\u5f53 <code>switch<\/code> \u6240\u6709\u7684 <code>case<\/code> \u90fd\u4e0d\u6ee1\u8db3\u65f6\uff0c\u5c06\u8fdb\u5165 <code>default<\/code> \u6267\u884c\u3002<code>default<\/code> \u53ea\u80fd\u653e\u5728 <code>switch<\/code> \u8bed\u53e5\u6240\u6709\u7684 <code>case<\/code> \u4e4b\u540e\uff0c\u5e76\u4e14\u662f\u53ef\u9009\u7684<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">delete\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>delete<\/code>\u91ca\u653e\u7a0b\u5e8f\u52a8\u6001\u7533\u8bf7\u7684\u5185\u5b58\u7a7a\u95f4\u3002<code>delete<\/code> \u540e\u9762\u901a\u5e38\u662f\u4e00\u4e2a\u6307\u9488\u6216\u8005<code>\u6570\u7ec4 []<\/code>\uff0c\u5e76\u4e14\u53ea\u80fd <code>delete<\/code> \u901a\u8fc7 <code>new<\/code> \u5173\u952e\u5b57\u7533\u8bf7\u7684\u6307\u9488\uff0c\u5426\u5219\u4f1a\u53d1\u751f\u6bb5\u9519\u8bef<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">do\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>do-while<\/code>\u5faa\u73af\u7ed3\u6784<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">double\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>double<\/code>\u7c7b\u578b\uff0c\u4ee5\u53cc\u7cbe\u5ea6\u5f62\u5f0f\u5b58\u50a8\u4e00\u4e2a\u6d6e\u70b9\u6570<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">dynamic_cast\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>dynamic_cast<\/code>\uff0c\u5141\u8bb8\u5728\u8fd0\u884c\u65f6\u523b\u8fdb\u884c\u7c7b\u578b\u8f6c\u6362\uff0c\u4ece\u800c\u4f7f\u7a0b\u5e8f\u80fd\u591f\u5728\u4e00\u4e2a\u7c7b\u5c42\u6b21\u7ed3\u6784\u5b89\u5168\u5730\u8f6c\u6362\u7c7b\u578b\u3002<code>dynamic_cast<\/code> \u63d0\u4f9b\u4e86\u4e24\u79cd\u8f6c\u6362\u65b9\u5f0f\uff0c\u628a\u57fa\u7c7b\u6307\u9488\u8f6c\u6362\u6210\u6d3e\u751f\u7c7b\u6307\u9488\uff0c\u6216\u8005\u628a\u6307\u5411\u57fa\u7c7b\u7684\u5de6\u503c\u8f6c\u6362\u6210\u6d3e\u751f\u7c7b\u7684\u5f15\u7528<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">else\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e0e<code>if<\/code>\u4e00\u8d77\u4f7f\u7528<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">enum\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u679a\u4e3e\u7c7b\u578b<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">explicit\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>explicit<\/code>\u5173\u952e\u5b57\u53ea\u80fd\u7528\u4e8e\u4fee\u9970\u53ea\u6709\u4e00\u4e2a\u53c2\u6570\u7684\u7c7b\u6784\u9020\u51fd\u6570, \u5b83\u7684\u4f5c\u7528\u662f\u8868\u660e\u8be5\u6784\u9020\u51fd\u6570\u662f\u663e\u793a\u7684, \u800c\u975e\u9690\u5f0f\u7684<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">export\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>C++11<\/code>\u524d: \u7528\u4e8e\u6807\u6ce8\u4e00\u4e2a\u6a21\u677f\u5b9a\u4e49\u88ab\u5bfc\u51fa\uff0c\u8fd9\u5141\u8bb8\u5728\u5176\u4ed6\u7ffb\u8bd1\u5355\u5143\u4e2d\u58f0\u660e\uff0c\u4f46\u4e0d\u5b9a\u4e49\u540c\u4e00\u6a21\u677f <code>C++11<\/code>\u8d77: \u4e0d\u4f7f\u7528\uff0c\u5e76\u4fdd\u7559\u8be5\u5173\u952e\u5b57<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">extern\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4fee\u9970\u7b26<code>extern<\/code>\u7528\u5728\u53d8\u91cf\u6216\u8005\u51fd\u6570\u7684\u58f0\u660e\u524d\uff0c\u7528\u6765\u8bf4\u660e\u6b64\u53d8\u91cf\/\u51fd\u6570\u662f\u5728\u522b\u5904\u5b9a\u4e49\u7684\uff0c\u8981\u5728\u6b64\u5904\u5f15\u7528<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">false\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5e03\u5c14\u578b\u53d8\u91cf\uff0c\u903b\u8f91\u5047\uff0c\u5bf9\u5e94<code>\u6574\u578b0<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">for\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>for<\/code> \u662f <code>C++<\/code> \u4e2d\u7684\u5faa\u73af\u7ed3\u6784\u4e4b\u4e00<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">friend\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>friend<\/code>\u58f0\u660e\u53cb\u5143\u5173\u7cfb\u3002\u53cb\u5143\u53ef\u4ee5\u8bbf\u95ee\u4e0e\u5176\u6709 <code>friend<\/code> \u5173\u7cfb\u7684\u7c7b\u4e2d\u7684 <code>private\/protected<\/code> \u6210\u5458<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">goto\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7528\u4e8e\u65e0\u6761\u4ef6\u8df3\u8f6c\u5230\u67d0\u4e00\u6807\u53f7\u5904\u5f00\u59cb\u6267\u884c<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">if\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6761\u4ef6\u63a7\u5236\u8bed\u53e5\uff0c\u4e0e<code>else<\/code>\u540c\u65f6\u4f7f\u7528<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">inline\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>inline<\/code>\uff08\u5185\u8054\uff09\u51fd\u6570\u7684\u5b9a\u4e49\u5c06\u5728\u7f16\u8bd1\u65f6\u5728\u8c03\u7528\u5904\u5c55\u5f00<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">int\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6574\u578b\u6570\u636e\u7c7b\u578b\uff0c\u6709\u7b26\u53f732\u4f4d\u6574\u6570<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">long\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6574\u578b\u6570\u636e\u7c7b\u578b\uff0c\u6709\u7b26\u53f7 32 \u6574\u6570 (<code>long int<\/code>)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">long long\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6709\u7b26\u53f7 64 \u4f4d\u6574\u6570<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">mutable\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5f53\u4e00\u4e2a\u6210\u5458\u53d8\u91cf\u88ab\u58f0\u660e\u4e3a<code>mutable<\/code>\u65f6\uff0c\u5b83\u663e\u793a\u5730\u8868\u660e&#8221;\u8fd9\u4e2a\u53d8\u91cf\u53ef\u80fd\u5728\u4e00\u4e2a<code>const<\/code>\u8bed\u4e49\u73af\u5883\u4e2d\u88ab\u66f4\u6539\u201d<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">namespace\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u547d\u540d\u7a7a\u95f4<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">new\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>new<\/code>\u7528\u4e8e\u65b0\u5efa\u4e00\u4e2a\u5bf9\u8c61\u3002<code>new<\/code> \u8fd0\u7b97\u7b26\u603b\u662f\u8fd4\u56de\u4e00\u4e2a\u6307\u9488<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">operator\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>operator<\/code>\u7528\u4e8e\u64cd\u4f5c\u7b26\u91cd\u8f7d<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">private\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>protected<\/code>\uff08\u53d7\u4fdd\u62a4\u7684\uff09\uff0c<code>C++<\/code> \u4e2d\u7684\u8bbf\u95ee\u63a7\u5236\u7b26\u3002\u88ab\u6807\u660e\u4e3a <code>private<\/code> \u7684\u5b57\u6bb5\u53ea\u80fd\u5728\u672c\u7c7b\u4ee5\u53ca\u53cb\u5143\u4e2d\u8bbf\u95ee<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">protected\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>protected<\/code>\uff08\u53d7\u4fdd\u62a4\u7684\uff09\uff0c<code>C++<\/code> \u4e2d\u7684\u8bbf\u95ee\u63a7\u5236\u7b26\u3002\u88ab\u6807\u660e\u4e3a <code>protected<\/code> \u7684\u5b57\u6bb5\u53ea\u80fd\u5728\u672c\u7c7b\u4ee5\u53ca\u5176\u7ee7\u627f\u7c7b\u548c\u53cb\u5143\u4e2d\u8bbf\u95ee<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">public\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>public<\/code>\uff08\u516c\u6709\u7684\uff09\uff0c<code>C++<\/code> \u4e2d\u7684\u8bbf\u95ee\u63a7\u5236\u7b26\u3002\u88ab\u6807\u660e\u4e3a <code>public<\/code> \u7684\u5b57\u6bb5\u53ef\u4ee5\u5728\u4efb\u4f55\u7c7b<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">register\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>register<\/code>\uff08\u5bc4\u5b58\u5668\uff09\u58f0\u660e\u7684\u53d8\u91cf\u79f0\u7740\u5bc4\u5b58\u5668\u53d8\u91cf\uff0c\u5728\u53ef\u80fd\u7684\u60c5\u51b5\u4e0b\u4f1a\u76f4\u63a5\u5b58\u653e\u5728\u673a\u5668\u7684\u5bc4\u5b58\u5668\u4e2d<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">reinterpret_cast\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>type-id<\/code> \u5fc5\u987b\u662f\u4e00\u4e2a\u6307\u9488\u3001\u5f15\u7528\u3001\u7b97\u672f\u7c7b\u578b\u3001\u51fd\u6570\u6307\u9488\u6216\u8005\u6210\u5458\u6307\u9488\u3002\u5b83\u53ef\u4ee5\u628a\u4e00\u4e2a\u6307\u9488\u8f6c\u6362\u6210\u4e00\u4e2a\u6574\u6570\uff0c\u4e5f\u53ef\u4ee5\u628a\u4e00\u4e2a\u6574\u6570\u8f6c\u6362\u6210\u4e00\u4e2a\u6307\u9488\uff08\u5148\u628a\u4e00\u4e2a\u6307\u9488\u8f6c\u6362\u6210\u4e00\u4e2a\u6574\u6570\uff0c\u5728\u628a\u8be5\u6574\u6570\u8f6c\u6362\u6210\u539f\u7c7b\u578b\u7684\u6307\u9488\uff0c\u8fd8\u53ef\u4ee5\u5f97\u5230\u539f\u5148\u7684\u6307\u9488\u503c\uff09<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">return\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>return<\/code>\uff08\u8fd4\u56de\uff09\u7528\u4e8e\u5728\u51fd\u6570\u4e2d\u8fd4\u56de\u503c\u3002\u7a0b\u5e8f\u5728\u6267\u884c\u5230 <code>return<\/code> \u8bed\u53e5\u540e\u7acb\u5373\u8fd4\u56de<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">short\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>short<\/code>\uff08\u77ed\u6574\u578b\uff0cshort integer\uff09\uff0c<code>C++<\/code> \u4e2d\u7684\u57fa\u672c\u6570\u636e\u7ed3\u6784\uff0c\u7528\u4e8e\u8868\u793a\u6574\u6570\uff0c\u7cbe\u5ea6\u5c0f\u4e8e <code>int<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">signed\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>signed<\/code>\uff08\u6709\u7b26\u53f7\uff09\uff0c\u8868\u660e\u8be5\u7c7b\u578b\u662f\u6709\u7b26\u53f7\u6570\uff0c\u548c <code>unsigned<\/code> \u76f8\u53cd\u3002\u6570\u5b57\u7c7b\u578b\uff08\u6574\u578b\u548c\u6d6e\u70b9\u578b\uff09\u90fd\u53ef\u4ee5\u7528 <code>signed<\/code> \u4fee\u9970\u3002\u4f46\u9ed8\u8ba4\u5c31\u662f <code>signed<\/code>\uff0c\u6240\u4ee5\u4e00\u822c\u4e0d\u4f1a\u663e\u5f0f\u4f7f\u7528<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">sizeof\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7531\u4e8e <code>C++<\/code> \u6bcf\u79cd\u7c7b\u578b\u7684\u5927\u5c0f\u90fd\u662f\u7531\u7f16\u8bd1\u5668\u81ea\u884c\u51b3\u5b9a\u7684\uff0c\u4e3a\u4e86\u589e\u52a0\u53ef\u79fb\u690d\u6027\uff0c\u53ef\u4ee5\u7528 <code>sizeof<\/code> \u8fd0\u7b97\u7b26\u83b7\u5f97\u8be5\u6570\u636e\u7c7b\u578b\u5360\u7528\u7684\u5b57\u8282\u6570\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">static\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>static<\/code>\uff08\u9759\u6001\u7684\uff09\u9759\u6001\u53d8\u91cf\u4f5c\u7528\u8303\u56f4\u5728\u4e00\u4e2a\u6587\u4ef6\u5185<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">static_cast\u5173\u952e\u5b57<\/h3>\n\n\n\n<p>\u8be5\u8fd0\u7b97\u7b26\u628a <code>expression<\/code> \u8f6c\u6362\u4e3a <code>type-id<\/code> \u7c7b\u578b\uff0c\u4f46\u6ca1\u6709\u8fd0\u884c\u65f6\u7c7b\u578b\u68c0\u67e5\u6765\u4fdd\u8bc1\u8f6c\u6362\u7684\u5b89\u5168\u6027\u3002\u5b83\u4e3b\u8981\u6709\u5982\u4e0b\u51e0\u79cd\u7528\u6cd5\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2460 \u7528\u4e8e\u7c7b\u5c42\u6b21\u7ed3\u6784\u4e2d\u57fa\u7c7b\u548c\u5b50\u7c7b\u4e4b\u95f4\u6307\u9488\u6216\u5f15\u7528\u7684\u8f6c\u6362\u3002\u8fdb\u884c\u4e0a\u884c\u8f6c\u6362\uff08\u628a\u5b50\u7c7b\u7684\u6307\u9488\u6216\u5f15\u7528\u8f6c\u6362\u6210\u57fa\u7c7b\u8868\u793a\uff09\u662f\u5b89\u5168\u7684\uff1b\u8fdb\u884c\u4e0b\u884c\u8f6c\u6362\uff08\u628a\u57fa\u7c7b\u6307\u9488\u6216\u5f15\u7528\u8f6c\u6362\u6210\u5b50\u7c7b\u8868\u793a\uff09\u65f6\uff0c\u7531\u4e8e\u6ca1\u6709\u52a8\u6001\u7c7b\u578b\u68c0\u67e5\uff0c\u6240\u4ee5\u662f\u4e0d\u5b89\u5168\u7684\u3002<\/li>\n\n\n\n<li>\u2461 \u7528\u4e8e\u57fa\u672c\u6570\u636e\u7c7b\u578b\u4e4b\u95f4\u7684\u8f6c\u6362\uff0c\u5982\u628a <code>int<\/code> \u8f6c\u6362\u6210 <code>char<\/code>\uff0c\u628a <code>int<\/code> \u8f6c\u6362\u6210 <code>enum<\/code>\u3002\u8fd9\u79cd\u8f6c\u6362\u7684\u5b89\u5168\u6027\u4e5f\u8981\u5f00\u53d1\u4eba\u5458\u6765\u4fdd\u8bc1\u3002<\/li>\n\n\n\n<li>\u2462 \u628a\u7a7a\u6307\u9488\u8f6c\u6362\u6210\u76ee\u6807\u7c7b\u578b\u7684\u7a7a\u6307\u9488\u3002<\/li>\n\n\n\n<li>\u2463 \u628a\u4efb\u4f55\u7c7b\u578b\u7684\u8868\u8fbe\u5f0f\u8f6c\u6362\u6210<code>void<\/code>\u7c7b<\/li>\n<\/ul>\n\n\n\n<p><strong>\u6ce8\u610f<\/strong> <code>static_cast<\/code> \u4e0d\u80fd\u8f6c\u6362\u6389 <code>expression<\/code> \u7684 <code>const<\/code>\u3001<code>volitale<\/code>\u3001\u6216\u8005 <code>__unaligned<\/code> \u5c5e\u6027<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">struct\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>struct<\/code>\uff08\u7ed3\u6784\uff09\u7c7b\u578b\uff0c\u7c7b\u4f3c\u4e8e <code>class<\/code> \u5173\u952e\u5b57<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">switch\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>switch<\/code>\uff08\u8f6c\u6362\uff09\u7c7b\u4f3c\u4e8e <code>if-else-if<\/code> \u8bed\u53e5\uff0c\u662f\u4e00\u79cd\u591a\u5206\u679d\u8bed\u53e5\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u6d01\u7684\u4e66\u5199\uff0c\u5e76\u4e14\u80fd\u591f\u751f\u6210\u6548\u7387\u66f4\u597d\u7684\u4ee3\u7801\u3002\u4f46\u662f\uff0c<code>switch<\/code> \u540e\u9762\u7684\u5224\u65ad\u53ea\u80fd\u662f<code>int<\/code>\uff08<code>char<\/code>\u4e5f\u53ef\u4ee5\uff0c\u4f46<code>char<\/code>\u672c\u8d28\u4e0a\u4e5f\u662f\u4e00\u79cd<code>int<\/code>\u7c7b\u578b\uff09\u3002<code>switch<\/code> \u8bed\u53e5\u6700\u540e\u7684 <code>default<\/code> \u5206\u652f\u662f\u53ef\u9009\u7684<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">template\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>template<\/code>\uff08\u6a21\u677f\uff09\uff0c<code>C++<\/code> \u4e2d\u6cdb\u578b\u673a\u5236\u7684\u5b9e\u73b0<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">this\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>this<\/code> \u8fd4\u56de\u8c03\u7528\u8005\u672c\u8eab\u7684\u6307\u9488<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">throw\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>throw<\/code>\uff08\u629b\u51fa\uff09\u7528\u4e8e\u5b9e\u73b0 <code>C++<\/code> \u7684\u5f02\u5e38\u5904\u7406\u673a\u5236\uff0c\u53ef\u4ee5\u901a\u8fc7 <code>throw<\/code> \u5173\u952e\u5b57&#8221;\u629b\u51fa&#8221;\u4e00\u4e2a\u5f02\u5e38<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">true\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>true<\/code>\uff08\u771f\u7684\uff09\uff0c<code>C++<\/code> \u7684\u57fa\u672c\u6570\u636e\u7ed3\u6784 <code>bool<\/code> \u7c7b\u578b\u7684\u503c\u4e4b\u4e00\u3002\u7b49\u540c\u4e8e <code>int<\/code> \u7684\u975e <code>0<\/code> \u503c<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">try\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>try<\/code>\u7528\u4e8e\u5b9e\u73b0 <code>C++<\/code> \u7684\u5f02\u5e38\u5904\u7406\u673a\u5236\u3002\u53ef\u4ee5\u5728 <code>try<\/code> \u4e2d\u8c03\u7528\u53ef\u80fd\u629b\u51fa\u5f02\u5e38\u7684\u51fd\u6570\uff0c\u7136\u540e\u5728 <code>try<\/code> \u540e\u9762\u7684 <code>catch<\/code> \u4e2d\u6355\u83b7\u5e76\u8fdb\u884c\u5904\u7406\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">typedef\u5173\u952e\u5b57<\/h3>\n\n\n\n<p><code>typedef<\/code>\uff08\u7c7b\u578b\u5b9a\u4e49\uff0c<code>type define<\/code>\uff09\uff0c\u5176\u683c\u5f0f\u4e3a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    typedef  \u7c7b\u578b \u5b9a\u4e49\u540d;<\/code><\/pre>\n\n\n\n<p>\u7c7b\u578b\u8bf4\u660e\u5b9a\u4e49\u4e86\u4e00\u4e2a\u6570\u636e\u7c7b\u578b\u7684\u65b0\u540d\u5b57\u800c\u4e0d\u662f\u5b9a\u4e49\u4e00\u79cd\u65b0\u7684\u6570\u636e\u7c7b\u578b\u3002\u5b9a\u4e49\u540d\u8868\u793a\u8fd9\u4e2a\u7c7b\u578b\u7684\u65b0\u540d\u5b57\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">typeid\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6307\u51fa\u6307\u9488\u6216\u5f15\u7528\u6307\u5411\u7684\u5bf9\u8c61\u7684\u5b9e\u9645\u6d3e\u751f\u7c7b\u578b<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">typename\u5173\u952e\u5b57<\/h3>\n\n\n\n<p><code>typename<\/code>\uff08\u7c7b\u578b\u540d\u5b57\uff09\u5173\u952e\u5b57\u544a\u8bc9\u7f16\u8bd1\u5668\u628a\u4e00\u4e2a\u7279\u6b8a\u7684\u540d\u5b57\u89e3\u91ca\u6210\u4e00\u4e2a\u7c7b\u578b\u3002\u5728\u4e0b\u5217\u60c5\u51b5\u4e0b\u5fc5\u987b\u5bf9\u4e00\u4e2a <code>name<\/code> \u4f7f\u7528 <code>typename<\/code> \u5173\u952e\u5b57\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1\uff0e \u4e00\u4e2a\u552f\u4e00\u7684`name`\uff08\u53ef\u4ee5\u4f5c\u4e3a\u7c7b\u578b\u7406\u89e3\uff09\uff0c\u5b83\u5d4c\u5957\u5728\u53e6\u4e00\u4e2a\u7c7b\u578b\u4e2d\u7684\u3002\n\n2\uff0e \u4f9d\u8d56\u4e8e\u4e00\u4e2a\u6a21\u677f\u53c2\u6570\uff0c\u5c31\u662f\u8bf4\uff1a\u6a21\u677f\u53c2\u6570\u5728\u67d0\u79cd\u7a0b\u5ea6\u4e0a\u5305\u542b\u8fd9\u4e2a`name`\u3002\u5f53\u6a21\u677f\u53c2\u6570\u4f7f\u7f16\u8bd1\u5668\u5728\u6307\u8ba4\u4e00\u4e2a\u7c7b\u578b\u65f6\u4ea7\u751f\u4e86\u8bef\u89e3<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">union\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e0e<code>\u7ed3\u6784\u4f53\uff08struct\uff09<\/code>\u3001<code>\u679a\u4e3e\uff08enum\uff09<\/code>\u4e00\u6837\uff0c\u8054\u5408\u4f53\u4e5f\u662f\u4e00\u79cd\u6784\u9020\u7c7b\u578b\uff1b<code>union<\/code>\u6210\u5458\u8868\u4e2d\u542b\u6709\u82e5\u5e72\u6210\u5458\uff0c\u6210\u5458\u7684\u4e00\u822c\u5f62\u5f0f\u4e3a\uff1a <code>\u7c7b\u578b\u8bf4\u660e\u7b26 \u6210\u5458\u540d<\/code>\u3002\u5176\u5360\u7528\u7684\u5b57\u8282\u6570\u4e0e\u6210\u5458\u4e2d\u6700\u5927\u6570\u636e\u7c7b\u578b\u5360\u7528\u7684\u5b57\u8282\u6570<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">unsigned\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>unsigned<\/code>\uff08\u65e0\u7b26\u53f7\uff09\uff0c\u8868\u660e\u8be5\u7c7b\u578b\u662f\u65e0\u7b26\u53f7\u6570\uff0c\u548c <code>signed<\/code> \u76f8\u53cd<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">using\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8868\u660e\u4f7f\u7528 <code>namespace<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">virtual\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>virtual<\/code>\uff08\u865a\u7684\uff09\uff0c<code>C++<\/code> \u4e2d\u7528\u6765\u5b9e\u73b0\u591a\u6001\u673a\u5236<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">void\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>void<\/code>\uff08\u7a7a\u7684\uff09\uff0c\u53ef\u4ee5\u4f5c\u4e3a\u51fd\u6570\u8fd4\u56de\u503c\uff0c\u8868\u660e\u4e0d\u8fd4\u56de\u4efb\u4f55\u6570\u636e\uff1b\u53ef\u4ee5\u4f5c\u4e3a\u53c2\u6570\uff0c\u8868\u660e\u6ca1\u6709\u53c2\u6570\u4f20\u5165\uff08<code>C++<\/code>\u4e2d\u4e0d\u662f\u5fc5\u987b\u7684\uff09\uff1b\u53ef\u4ee5\u4f5c\u4e3a\u6307\u9488\u4f7f\u7528<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">volatile\u5173\u952e\u5b57<\/h3>\n\n\n\n<p><code>volatile<\/code>\uff08\u4e0d\u7a33\u5b9a\u7684\uff09\u9650\u5b9a\u4e00\u4e2a\u5bf9\u8c61\u53ef\u88ab\u5916\u90e8\u8fdb\u7a0b\uff08\u64cd\u4f5c\u7cfb\u7edf\u3001\u786c\u4ef6\u6216\u5e76\u53d1\u7ebf\u7a0b\u7b49\uff09\u6539\u53d8\uff0c\u58f0\u660e\u65f6\u7684\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int volatile nVint;<\/code><\/pre>\n\n\n\n<p>\u8fd9\u6837\u7684\u58f0\u660e\u662f\u4e0d\u80fd\u8fbe\u5230\u6700\u9ad8\u6548\u7684\uff0c\u56e0\u4e3a\u5b83\u4eec\u7684\u503c\u968f\u65f6\u4f1a\u6539\u53d8\uff0c\u7cfb\u7edf\u5728\u9700\u8981\u65f6\u4f1a\u7ecf\u5e38\u8bfb\u5199\u8fd9\u4e2a\u5bf9\u8c61\u7684\u503c\u3002\u56e0\u6b64\u5e38\u7528\u4e8e\u50cf\u4e2d\u65ad\u5904\u7406\u7a0b\u5e8f\u4e4b\u7c7b\u7684\u5f02\u6b65\u8fdb\u7a0b\u8fdb\u884c\u5185\u5b58\u5355\u5143\u8bbf\u95ee\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">wchar_t\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>wchar_t<\/code> \u662f\u5bbd\u5b57\u7b26\u7c7b\u578b\uff0c\u6bcf\u4e2a <code>wchar_t<\/code> \u7c7b\u578b\u5360 2 \u4e2a\u5b57\u8282\uff0c16 \u4f4d\u5bbd<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">while\u5173\u952e\u5b57<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>while<\/code>\u5faa\u73af<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u8ff0\uff1a\u8bb0\u5f55C++11\u6807\u51c6\u4e0b\u5173\u952e\u5b57\uff0c\u76ee\u524d\u4ec5\u4e3a\u7b80\u7565\u6574\u7406\u3002 \u540e\u7eed\u91cd\u5927\u4fee\u6539\u540c\u6b65\u66f4\u65b0\u7b80\u8ff0 C++\u5173\u952e\u5b57 asm\u5173\u952e\u5b57 a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-344","post","type-post","status-publish","format-standard","hentry","category-learning-programming-languages"],"_links":{"self":[{"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=\/wp\/v2\/posts\/344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=344"}],"version-history":[{"count":2,"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=\/wp\/v2\/posts\/344\/revisions"}],"predecessor-version":[{"id":346,"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=\/wp\/v2\/posts\/344\/revisions\/346"}],"wp:attachment":[{"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garfield-blog.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}