{"id":29078,"date":"2015-04-08T00:38:16","date_gmt":"2015-04-07T15:38:16","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=29078"},"modified":"2015-04-08T00:38:16","modified_gmt":"2015-04-07T15:38:16","slug":"cpp-samples","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/cpp-samples\/","title":{"rendered":"c++\u200bsamples - \u30e2\u30c0\u30f3\u306aC++\u30b3\u30fc\u30c9\u306e\u30b5\u30f3\u30d7\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2015\/04\/IC___Samples.png\" alt=\"C Samples\" title=\"C___Samples.png\" border=\"0\" width=\"545\" height=\"298\" \/><\/p>\n<p>\u6700\u8fd1\u6d41\u884c\u308a\u306eWeb\u7cfb\u8a00\u8a9e\u3084\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u7cfb\u8a00\u8a9e\u306e\u3088\u3046\u306b\u811a\u5149\u3092\u6d74\u3073\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001C++\u8a00\u8a9e\u306f\u3044\u307e\u3060\u306b\u591a\u304f\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u66ff\u3048\u306e\u52b9\u304b\u306a\u3044\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3068\u3057\u3066\u4f7f\u308f\u308c\u7d9a\u3051\u3066\u3044\u307e\u3059\u3002\u300c<a href=\"http:\/\/www.cppsamples.com\/\">c++\u200bsamples<\/a>\u300d\u306f\u305d\u3093\u306a\u91cd\u8981\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eC++\u306e\u30e2\u30c0\u30f3\u306a\u30b5\u30f3\u30d7\u30eb\u3092\u96c6\u3081\u305f\u30b3\u30fc\u30c9\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u3059\u3002<\/p>\n<p>\u521d\u5fc3\u8005\u304b\u3089\u4e2d\u7d1a\u8005\u306eC++\u958b\u767a\u8005\u306b\u5bfe\u3057\u3001C++\u3067\u4e00\u822c\u7684\u306a\u554f\u984c\u3092\u89e3\u304f\u305f\u3081\u306e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3068\u306a\u308b\u60c5\u5831\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066\u4f5c\u3089\u308c\u305f\u3082\u306e\u3067\u3001C++11\u4ee5\u964d\u306eC++\u8a00\u8a9e\/\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5909\u5316\u306b\u8ffd\u968f\u3059\u308b\u3088\u3046\u66f4\u65b0\u3092\u7d9a\u3051\u3066\u3044\u304f\u610f\u5411\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h2>\u30e2\u30c0\u30f3\u306a\u30b5\u30f3\u30d7\u30eb<\/h2>\n<p>\u30b5\u30f3\u30d7\u30eb\u306f\u3001\u4e00\u822c\u7684\u306a\u30bf\u30b9\u30af(\u30af\u30e9\u30b9\u3001\u95a2\u6570\u3001\u30a4\u30f3\u30d7\u30c3\u30c8\/\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u30b9\u30c8\u30ea\u30fc\u30e0\u3001\u30e1\u30e2\u30ea\u7ba1\u7406\u3001template\u306a\u3069)\u3001\u30d1\u30bf\u30fc\u30f3(\u3044\u308f\u3086\u308b\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3)\u3001\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0(\u30bd\u30fc\u30c8\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306a\u3069)\u306b\u5206\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5177\u4f53\u4f8b\u3068\u3057\u3066\u4f8b\u3048\u3070 std::unique_ptr\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3059\u308b\u300c<a href=\"http:\/\/www.cppsamples.com\/common-tasks\/unique-ownership.html\">Unique ownership<\/a>\u300d\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u96f0\u56f2\u6c17\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2015\/04\/IUnique_ownership_-_C___Samples.png\" alt=\"Unique ownership C Samples\" title=\"Unique_ownership_-_C___Samples.png\" border=\"0\" width=\"545\" height=\"191\" \/><\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3001\u610f\u56f3\u3001\u8aac\u660e\u304c\u7c21\u6f54\u306b\u307e\u3068\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u540cWeb\u30b5\u30a4\u30c8\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f<a href=\"https:\/\/github.com\/sftrabbit\/CppSamples-Samples\">GitHub<\/a>\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5b9f\u969b\u306b\u30b3\u30fc\u30c9\u3092\u63a2\u3059\u5834\u5408\u306f\u30ed\u30fc\u30ab\u30eb\u306bclone\u3057\u3066\u304b\u3089\u691c\u7d22\u30bd\u30d5\u30c8\u3067\u691c\u7d22\u3057\u305f\u307b\u3046\u304c\u624b\u3063\u53d6\u308a\u65e9\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3069\u3046\u305b\u306a\u3089\u6700\u65b0\u30d5\u30a9\u30fc\u30e0\u3067C++\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u59cb\u3081\u305f\u3044\u5165\u9580\u8005\u306e\u65b9\u3001\u307e\u305f\u4ee5\u524d\u306fC++\u3092\u3088\u304f\u4f7f\u3063\u3066\u3044\u305f\u3051\u3069\u3001\u6700\u8fd1\u306f\u3054\u7121\u6c99\u6c70\u3067\u6d41\u308c\u306b\u3064\u3044\u3066\u3044\u3051\u306a\u304b\u3063\u305f\u65b9\u306b\u30aa\u30b9\u30b9\u30e1\u306e\u30b5\u30f3\u30d7\u30eb\u96c6\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u6d41\u884c\u308a\u306eWeb\u7cfb\u8a00\u8a9e\u3084\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u7cfb\u8a00\u8a9e\u306e\u3088\u3046\u306b\u811a\u5149\u3092\u6d74\u3073\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001C++\u8a00\u8a9e\u306f\u3044\u307e\u3060\u306b\u591a\u304f\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u66ff\u3048\u306e\u52b9\u304b\u306a\u3044\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3068\u3057\u3066\u4f7f\u308f\u308c\u7d9a\u3051\u3066\u3044\u307e\u3059\u3002\u300cc++\u200bsamples\u300d\u306f\u305d\u3093\u306a\u91cd\u8981 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":29076,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[66,75],"tags":[3107,3108],"class_list":["post-29078","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webservice","category-software","tag-cpp","tag-samples"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/29078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=29078"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/29078\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/29076"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=29078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=29078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=29078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}