{"id":6720,"date":"2017-11-13T17:53:32","date_gmt":"2017-11-13T08:53:32","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=6720"},"modified":"2017-11-13T18:10:04","modified_gmt":"2017-11-13T09:10:04","slug":"c-%e3%81%a7%e7%ae%97%e8%a1%93%e5%8f%b3%e3%82%b7%e3%83%95%e3%83%88","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=6720","title":{"rendered":"C++ \u3067\u7b97\u8853\u53f3\u30b7\u30d5\u30c8"},"content":{"rendered":"<p>\u305d\u3046\u3044\u3084 C++ \u3067\u7b97\u8853\u53f3\u30b7\u30d5\u30c8 (arithmetic right shift) \u3059\u308b\u306b\u306f\u3069\u3046\u66f8\u3051\u3070\u3044\u3044\u3093\u3060\u308d\u3046\u3001 intrinsic \u306a\u3044\u3088\u306a\u3041\u2026\u3068\u601d\u3063\u3066\u305f\u3093\u3067\u3059\u304c\u3001<a href=\"http:\/\/en.cppreference.com\/w\/cpp\/language\/operator_arithmetic#Bitwise_shift_operators\">\u300c\u307b\u3068\u3093\u3069\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u3067\u306f\u300d\u7b26\u53f7\u4ed8\u304d\u6574\u6570\u3092\u53f3\u30b7\u30d5\u30c8\u3059\u308c\u3070\u7b97\u8853\u53f3\u30b7\u30d5\u30c8\u306b\u306a\u308b<\/a>\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\uff08\u8ca0\u306e\uff09\u7b26\u53f7\u4ed8\u304d\u6574\u6570\u3092\u53f3\u30b7\u30d5\u30c8\u3057\u305f\u6642\u306e\u52d5\u4f5c\u306f\u51e6\u7406\u7cfb\u5b9a\u7fa9\u306a\u306e\u3067\u3001\u8ad6\u7406\u53f3\u30b7\u30d5\u30c8\u306b\u306a\u308b\u51e6\u7406\u7cfb\u3092\u3046\u3063\u304b\u308a\u8e0f\u3080\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306a static_assert \u3092\u66f8\u3044\u3066\u304a\u3051\u3070\u5b89\u5fc3\u3067\u3057\u3087\u3046\u3002<\/p>\n<blockquote>\n<pre>\r\nstatic_assert(-1 >> 1 == -1, \"signed right shift is not arithmetic.\");\r\n<\/pre>\n<\/blockquote>\n<p>\u3061\u306a\u307f\u306b\u8ca0\u306e\u6574\u6570\u3092<strong>\u5de6<\/strong>\u30b7\u30d5\u30c8\u3057\u305f\u5834\u5408\u306f\u672a\u5b9a\u7fa9\u52d5\u4f5c\u3089\u3057\u3044\u3067\u3059\u3002\u6016\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u305d\u3046\u3044\u3084 C++ \u3067\u7b97\u8853\u53f3\u30b7\u30d5\u30c8 (arithmetic right shift) \u3059\u308b\u306b\u306f\u3069\u3046\u66f8\u3051\u3070\u3044\u3044\u3093\u3060\u308d\u3046\u3001 intrinsic \u306a\u3044\u3088\u306a\u3041\u2026\u3068\u601d\u3063\u3066\u305f\u3093\u3067\u3059\u304c\u3001\u300c\u307b\u3068\u3093\u3069\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u3067\u306f\u300d\u7b26\u53f7\u4ed8\u304d\u6574\u6570\u3092\u53f3\u30b7\u30d5\u30c8 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-6720","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6720"}],"version-history":[{"count":4,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6720\/revisions"}],"predecessor-version":[{"id":6724,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6720\/revisions\/6724"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6720"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}