{"id":284,"date":"2020-06-16T05:50:20","date_gmt":"2020-06-16T05:50:20","guid":{"rendered":"http:\/\/feellikelearning.com\/?p=284"},"modified":"2020-06-16T05:50:48","modified_gmt":"2020-06-16T05:50:48","slug":"knowledge-about-cpp-11-constexpr","status":"publish","type":"post","link":"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/","title":{"rendered":"C++ 11 \u77e5\u8bc6\uff0cconstexpr | Knowledge about C++ 11, constexpr"},"content":{"rendered":"\n<p>\u8bfbC++ code\u78b0\u5230constexpr\uff0c\u60f3\u7740\u5e94\u8be5\u548cconst\u5dee\u4e0d\u591a\u5427\uff0c\u4f46\u662f\u65e2\u7136\u65b0\u9020\u4e86\u90a3\u4e48\u4e2a\u5173\u952e\u8bcd\u51fa\u6765\uff0c\u80af\u5b9a\u7528\u5b83\u7684\u4f5c\u7528\u3002\u67e5\u4e86\u4e00\u4e0b\uff0c\u603b\u7ed3\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ol><li>\u5982\u679c\u7528\u5728\u53d8\u91cf\u58f0\u660e\uff0c\u7b49\u540cconst<\/li><li>\u5982\u679c\u7528\u5728\u51fd\u6570\u58f0\u660e\uff0c\u7b49\u540cinline<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u8bfbC++ code\u78b0\u5230constexpr\uff0c\u60f3\u7740\u5e94\u8be5\u548cconst\u5dee\u4e0d\u591a\u5427\uff0c\u4f46\u662f\u65e2\u7136\u65b0\u9020\u4e86\u90a3\u4e48\u4e2a\u5173\u952e\u8bcd\u51fa\u6765\uff0c\u80af\u5b9a\u7528\u5b83\u7684\u4f5c\u7528\u3002\u67e5\u4e86\u4e00\u4e0b\uff0c\u603b\u7ed3\u5982\u4e0b\uff1a \u5982\u679c\u7528\u5728\u53d8\u91cf\u58f0\u660e\uff0c\u7b49\u540cconst \u5982\u679c\u7528\u5728\u51fd\u6570\u58f0\u660e\uff0c\u7b49\u540cinline<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.10 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C++ 11 \u77e5\u8bc6\uff0cconstexpr | Knowledge about C++ 11, constexpr | Feel Like Learning<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C++ 11 \u77e5\u8bc6\uff0cconstexpr | Knowledge about C++ 11, constexpr | Feel Like Learning\" \/>\n<meta property=\"og:description\" content=\"\u8bfbC++ code\u78b0\u5230constexpr\uff0c\u60f3\u7740\u5e94\u8be5\u548cconst\u5dee\u4e0d\u591a\u5427\uff0c\u4f46\u662f\u65e2\u7136\u65b0\u9020\u4e86\u90a3\u4e48\u4e2a\u5173\u952e\u8bcd\u51fa\u6765\uff0c\u80af\u5b9a\u7528\u5b83\u7684\u4f5c\u7528\u3002\u67e5\u4e86\u4e00\u4e0b\uff0c\u603b\u7ed3\u5982\u4e0b\uff1a \u5982\u679c\u7528\u5728\u53d8\u91cf\u58f0\u660e\uff0c\u7b49\u540cconst \u5982\u679c\u7528\u5728\u51fd\u6570\u58f0\u660e\uff0c\u7b49\u540cinline\" \/>\n<meta property=\"og:url\" content=\"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant\" \/>\n<meta property=\"og:site_name\" content=\"Feel Like Learning\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-16T05:50:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-16T05:50:48+00:00\" \/>\n<meta name=\"author\" content=\"feellikelearning\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"feellikelearning\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant#article\",\"isPartOf\":{\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant\"},\"author\":{\"name\":\"feellikelearning\",\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a\"},\"headline\":\"C++ 11 \u77e5\u8bc6\uff0cconstexpr | Knowledge about C++ 11, constexpr\",\"datePublished\":\"2020-06-16T05:50:20+00:00\",\"dateModified\":\"2020-06-16T05:50:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant\"},\"wordCount\":12,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant\",\"url\":\"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant\",\"name\":\"C++ 11 \u77e5\u8bc6\uff0cconstexpr | Knowledge about C++ 11, constexpr | Feel Like Learning\",\"isPartOf\":{\"@id\":\"https:\/\/feellikelearning.com\/#website\"},\"datePublished\":\"2020-06-16T05:50:20+00:00\",\"dateModified\":\"2020-06-16T05:50:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/feellikelearning.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C++ 11 \u77e5\u8bc6\uff0cconstexpr | Knowledge about C++ 11, constexpr\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/feellikelearning.com\/#website\",\"url\":\"https:\/\/feellikelearning.com\/\",\"name\":\"Feel Like Learning\",\"description\":\"\u7a0b\u5e8f\uff5c\u751f\u6d3b\uff5c\u5b66\u5230\u5c31\u662f\u8d5a\u5230\",\"publisher\":{\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/feellikelearning.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a\",\"name\":\"feellikelearning\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/72a1e86e9dcb0332e88bd7d54fd36c28?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/72a1e86e9dcb0332e88bd7d54fd36c28?s=96&d=mm&r=g\",\"caption\":\"feellikelearning\"},\"logo\":{\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/feellikelearning.com\/index.php\/author\/feellikelearning\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C++ 11 \u77e5\u8bc6\uff0cconstexpr | Knowledge about C++ 11, constexpr | Feel Like Learning","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant","og_locale":"en_US","og_type":"article","og_title":"C++ 11 \u77e5\u8bc6\uff0cconstexpr | Knowledge about C++ 11, constexpr | Feel Like Learning","og_description":"\u8bfbC++ code\u78b0\u5230constexpr\uff0c\u60f3\u7740\u5e94\u8be5\u548cconst\u5dee\u4e0d\u591a\u5427\uff0c\u4f46\u662f\u65e2\u7136\u65b0\u9020\u4e86\u90a3\u4e48\u4e2a\u5173\u952e\u8bcd\u51fa\u6765\uff0c\u80af\u5b9a\u7528\u5b83\u7684\u4f5c\u7528\u3002\u67e5\u4e86\u4e00\u4e0b\uff0c\u603b\u7ed3\u5982\u4e0b\uff1a \u5982\u679c\u7528\u5728\u53d8\u91cf\u58f0\u660e\uff0c\u7b49\u540cconst \u5982\u679c\u7528\u5728\u51fd\u6570\u58f0\u660e\uff0c\u7b49\u540cinline","og_url":"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant","og_site_name":"Feel Like Learning","article_published_time":"2020-06-16T05:50:20+00:00","article_modified_time":"2020-06-16T05:50:48+00:00","author":"feellikelearning","twitter_card":"summary_large_image","twitter_misc":{"Written by":"feellikelearning"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant#article","isPartOf":{"@id":"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant"},"author":{"name":"feellikelearning","@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a"},"headline":"C++ 11 \u77e5\u8bc6\uff0cconstexpr | Knowledge about C++ 11, constexpr","datePublished":"2020-06-16T05:50:20+00:00","dateModified":"2020-06-16T05:50:48+00:00","mainEntityOfPage":{"@id":"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant"},"wordCount":12,"commentCount":0,"publisher":{"@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant#respond"]}]},{"@type":"WebPage","@id":"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant","url":"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant","name":"C++ 11 \u77e5\u8bc6\uff0cconstexpr | Knowledge about C++ 11, constexpr | Feel Like Learning","isPartOf":{"@id":"https:\/\/feellikelearning.com\/#website"},"datePublished":"2020-06-16T05:50:20+00:00","dateModified":"2020-06-16T05:50:48+00:00","breadcrumb":{"@id":"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/feellikelearning.com\/index.php\/2020\/06\/16\/knowledge-about-cpp-11-constexpr\/?variant=zh-hant#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/feellikelearning.com\/"},{"@type":"ListItem","position":2,"name":"C++ 11 \u77e5\u8bc6\uff0cconstexpr | Knowledge about C++ 11, constexpr"}]},{"@type":"WebSite","@id":"https:\/\/feellikelearning.com\/#website","url":"https:\/\/feellikelearning.com\/","name":"Feel Like Learning","description":"\u7a0b\u5e8f\uff5c\u751f\u6d3b\uff5c\u5b66\u5230\u5c31\u662f\u8d5a\u5230","publisher":{"@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/feellikelearning.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a","name":"feellikelearning","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/72a1e86e9dcb0332e88bd7d54fd36c28?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/72a1e86e9dcb0332e88bd7d54fd36c28?s=96&d=mm&r=g","caption":"feellikelearning"},"logo":{"@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/image\/"},"url":"https:\/\/feellikelearning.com\/index.php\/author\/feellikelearning\/"}]}},"_links":{"self":[{"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/posts\/284"}],"collection":[{"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/comments?post=284"}],"version-history":[{"count":2,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/posts\/284\/revisions"}],"predecessor-version":[{"id":286,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/posts\/284\/revisions\/286"}],"wp:attachment":[{"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/media?parent=284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/categories?post=284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/tags?post=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}