{"id":451,"date":"2011-12-02T23:59:49","date_gmt":"2011-12-02T14:59:49","guid":{"rendered":"http:\/\/dev.activebasic.com\/egtra\/?p=451"},"modified":"2018-04-22T01:23:46","modified_gmt":"2018-04-21T16:23:46","slug":"c11%e6%99%82%e4%bb%a3%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%82%af%e3%83%a9%e3%82%b9%e3%81%ae%e6%9b%b8%e3%81%8d%e6%96%b9","status":"publish","type":"post","link":"https:\/\/dev.activebasic.com\/egtra\/2011\/12\/02\/451\/","title":{"rendered":"C++11\u6642\u4ee3\u306b\u304a\u3051\u308b\u30af\u30e9\u30b9\u306e\u66f8\u304d\u65b9"},"content":{"rendered":"<p>\u672c\u8a18\u4e8b\u306f\u3001<a href=\"https:\/\/atnd.org\/events\/21936\">C++11 Advent Calendar 2011 : ATND<\/a>\u306e2\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n<hr \/>\n<p>C++\u306eclass\u306f\u69d8\u3005\u306a\u4f7f\u3044\u65b9\u304c\u3067\u304d\u307e\u3059\u3002\u5f8c\u767a\u306e\u307b\u304b\u306e\u8a00\u8a9e\u3067\u306f\u3044\u304f\u3064\u3082\u306e\u6982\u5ff5\u306b\u5206\u304b\u308c\u3066\u3044\u308b\u3082\u306e\u3082\u3001C++\u3067\u306f\u3059\u3079\u3066class\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001C++\u3067class\u3092\u5b9a\u7fa9\u3059\u308b\u969b\u3082\u3001class\u3068\u4e00\u62ec\u308a\u306b\u305b\u305a\u3001\u81ea\u5206\u304c\u3044\u3063\u305f\u3044\u3069\u3093\u306aclass\u3092\u66f8\u3053\u3046\u3068\u3057\u3066\u3044\u308b\u306e\u304b\u660e\u78ba\u306b\u610f\u8b58\u3059\u308b\u3068\u3088\u3044\u306e\u3067\u306f\u306a\u3044\u3060\u308d\u3046\u304b\u3068\u8003\u3048\u307e\u3057\u305f\u3002\u305d\u306e\u305f\u3081\u306b\u3001\u79c1\u306a\u308a\u306eclass\u306e\u5206\u985e\u3092\u307e\u3068\u3081\u3001\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u304f\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u5404\u3005\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u7d4c\u9a13\u306b\u3088\u308a\u9055\u3044\u304c\u51fa\u308b\u3053\u3068\u3068\u601d\u3044\u307e\u3059\u3002\u7570\u8ad6\u3082\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u3054\u81ea\u8eab\u3067\u3082\u8003\u3048\u3066\u307f\u308b\u3068\u3088\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306f4\u7a2e\u985e\u306b\u5206\u985e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<hr \/>\n<p>1\u3064\u76ee\u306f<strong>\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 (OOP) \u3092\u5b9f\u73fe\u3059\u308b\u30af\u30e9\u30b9\u300d<\/strong>\u3067\u3059\uff08\u9577\u3044\u306e\u3067\u4ee5\u4e0b<strong>OOP\u30af\u30e9\u30b9<\/strong>\u3068\u7565\u3057\u307e\u3059\uff09\u3002<\/p>\n<p>virtual\u95a2\u6570\u3092\u4f7f\u3044\u3001\u30af\u30e9\u30b9\u306e\u7d99\u627f\u3092\u7528\u3044\u3066\u3001\u591a\u614b\u6027\u3092\u8868\u73fe\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30bf\u30a4\u30eb\u3092\u5b9f\u73fe\u3059\u308b\u30af\u30e9\u30b9\u3067\u3059\u3002\u57fa\u672c\u7684\u306b\u3001\u3053\u308c\u306b\u5206\u985e\u3059\u308bclass\u540c\u58eb\u306e\u7d99\u627f\u306f\u5358\u72ec\u7d99\u627f\uff08\u3059\u3079\u3066public\uff09\u306e\u307f\u3067\u3059\u3002\u5f8c\u8ff0\u3059\u308b\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3084Mix-in\u306eclass\u30921\u3064\u307e\u305f\u306f\u8907\u6570\u8ffd\u52a0\u3067\u7d99\u627f\u3059\u308b\u3053\u3068\u306f\u69cb\u3044\u307e\u305b\u3093\u3002\u53b3\u5bc6\u306b\u8a00\u3046\u3068\u591a\u91cd\u7d99\u627f\u306f\u7981\u6b62\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001istream\/ostream\u2190iostream\u306e\u3088\u3046\u306b\u3046\u307e\u3044\u3053\u3068\u30cf\u30de\u308b\u4f8b\u306f\u73cd\u3057\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<pre lang=\"cpp\">\r\nclass Widget\r\n{\r\npublic:\r\n    int GetId();\r\n    virtual void Draw() = 0;\r\n    virtual Rectangle GetBound();\r\n    virtual ~Widget() = default;\r\n\r\nprivate:\r\n    std::unique_ptr<graphic_t> graphic_t;\r\n    std::unique_ptr<window_handle_t> window_handle;\r\n\r\n    Widget(Widget const&) = delete;\r\n    Widget(Widget&&) = delete;\r\n    Widget& operator =(Widget const&) = delete;\r\n    Widget& operator =(Widget&&) = delete;\r\n};\r\n\r\nclass TextBox : Widget\r\n{\r\npublic:\r\n    virtual void Draw() override;\r\n    virtual Rectangle GetBound();\r\n    virtual ~TextBox() = default;\r\n\r\nprivate:\r\n    std::u16string text;\r\n};\r\n\r\n\/\/ \u2026\u2026\r\n<\/pre>\n<dl>\n<dt>\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u539f\u5247\u3068\u3057\u3066default\u3068\u3057\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u81ea\u52d5\u751f\u6210\u306b\u4efb\u305b\u307e\u3059\u3002<\/dt>\n<dd>\u30ea\u30bd\u30fc\u30b9\u306e\u89e3\u653e\u51e6\u7406\u304c\u5fc5\u8981\u306a\u3089\u3001\u5fc5\u305a\u305d\u308c\u3092\u30e9\u30c3\u30d7\u3057\u305f\u578b\u3092\u4f5c\u308a\u3001\u305d\u308c\u3092\u30e1\u30f3\u30d0\u3068\u3057\u3066\u6301\u3064\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u30c7\u30d0\u30c3\u30b0\u30ed\u30b0\u3092\u51fa\u529b\u3059\u308b\u306a\u3069\u3068\u3044\u3063\u305f\u89e3\u653e\u51e6\u7406\u3068\u3042\u307e\u308a\u95a2\u4fc2\u306a\u3044\u76ee\u7684\u306a\u3089\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u660e\u793a\u7684\u306b\u66f8\u3044\u3066\u3082\u3088\u3044\u3067\u3057\u3087\u3046\u3002\u306a\u304a\u3001\u3053\u308c\uff08\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u539f\u5247\u3068\u3057\u3066default\u306b\u3059\u308b\u3053\u3068\uff09\u306f\u4ee5\u4e0b\u3059\u3079\u3066\u306e\u5206\u985e\u306eclass\u306b\u5f53\u3066\u306f\u307e\u308a\u307e\u3059\u3002<\/dd>\n<dt>\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u306fpublic\u3067virutal\u306b\u3057\u307e\u3059\u3002<\/dt>\n<dd>\u300c\u975evirtual\u3067protected\u300d\u3084\u300c\u975evirutal\u3067public\u300d\u306eclass\u306f\u3001\u305f\u3076\u3093OOP\u30af\u30e9\u30b9\u306b\u5f53\u3066\u306f\u307e\u308a\u307e\u305b\u3093<\/dd>\n<dt>\u30b3\u30d4\u30fc\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fb\u30b3\u30d4\u30fc\u4ee3\u5165\u6f14\u7b97\u5b50\u30fb\u30e0\u30fc\u30d6\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fb\u30e0\u30fc\u30d6\u4ee3\u5165\u6f14\u7b97\u5b50\u3092delete\u3057\u307e\u3059<\/dt>\n<dd>\u3053\u306e\u7a2e\u306eclass\u3067\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b3\u30d4\u30fc\u306f\u3069\u3046\u3044\u3046\u610f\u5473\u3092\u6301\u3064\u306e\u304b\u8003\u3048\u3089\u308c\u306a\u3044\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002\u3042\u3068\u3001\u30b9\u30e9\u30a4\u30b7\u30f3\u30b0\u304c\u554f\u984c\u306b\u306a\u308b\u3068\u3044\u3046\u73fe\u5b9f\u3082\u3042\u308a\u307e\u3059\u3002\u306a\u304a\u3001\u5f93\u6765\u901a\u308aboost::noncopyable\u304b\u3089\u6d3e\u751f\u3055\u305b\u308b\u65b9\u6cd5\u3067\u3082\u69cb\u3044\u307e\u305b\u3093\u3002\u5fc5\u8981\u306a\u3089\u3001Java\u306a\u3069\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3078\u306e\u30dd\u30a4\u30f3\u30bf\u3092\u6301\u3061\u904b\u3076\u8a00\u8a9e\u3092\u898b\u7fd2\u3044\u3001new\u3057\u3066unique_ptr\u307e\u305f\u306fmake_shared\u3057\u3066shared_ptr\u306b\u5165\u308c\u307e\u3057\u3087\u3046\u3002<\/dd>\n<\/dl>\n<p>\u6700\u5f8c\u306e\u30b3\u30d4\u30fc\u7981\u6b62\u306b\u3059\u308b\u8a71\u306e\u88dc\u8db3\u3067\u3059\u3002\u5e0c\u306b\u3001\u30b3\u30d4\u30fc\u3092\u4f5c\u308c\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u5834\u5408\u3082\u3042\u308b\u3068\u306f\u601d\u3044\u307e\u3059\u3002\u305d\u306e\u5834\u5408\u306f\u3001Java\u3084C#\u306e\u3088\u3046\u306bClone\u30e1\u30f3\u30d0\u95a2\u6570\u3092\u300cvirtual\u3067\u300d\u5b9a\u7fa9\u3057\u307e\u3057\u3087\u3046\u3002\u305d\u306e\u5834\u5408\u3001Clone\u30e1\u30f3\u30d0\u95a2\u6570\u306e\u5b9f\u88c5\u3092\u76ee\u7684\u3068\u3057\u3066\u3001protected\u306a\u30b3\u30d4\u30fc\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u5b9a\u7fa9\u3057\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u3002<\/p>\n<pre lang=\"cpp\">\r\nclass Node\r\n{\r\npublic:\r\n    virtual std::unique_ptr<Node> Clone();\r\n    virtual ~Node() = default;\r\n\r\nprotected:\r\n    Node(Node const&) = default;\r\n\r\nprivate:\r\n    std::string name;\r\n\r\n    Node(Node&&) = delete;\r\n    Node& operator =(Node const&) = delete;\r\n    Node& operator =(Node&&) = delete;\r\n};\r\n\r\nclass TextNode : public Node\r\n{\r\npublic:\r\n    virtual std::unique_ptr<Node> Clone() override;\r\n\r\nprotected:\r\n    TextNode(TextNode const&);\r\n};\r\n\r\nstd::unique_ptr<Node> TextNode::Clone()\r\n{\r\n    \/\/ C++14\u304b\u3089\u306fmake_unique\u95a2\u6570\u304c\u4fbf\u5229\u3067\u3059\u3002\r\n    \/\/ return std::make_unique<TextNode>(*this);\r\n    return std::unique_ptr<Node>(new TextNode(*this));\r\n}\r\n<\/pre>\n<hr \/>\n<p>2\u3064\u76ee\u3001<strong>\u300c\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u300d<\/strong>\u3067\u3059\u3002<\/p>\n<p>Java\u3068\u304bC#\u3068\u304b\u306einterface\u3067\u3059\u3002C++\u3060\u3068\u7d14\u7c8b\u4eee\u60f3\u95a2\u6570\u3092\u4e26\u3079\u305f\u30af\u30e9\u30b9\u3068\u3057\u3066\u8868\u73fe\u3057\u307e\u3059\u3002<\/p>\n<pre lang=\"cpp\">\r\nclass IHogeable\r\n{\r\npublic:\r\n    virtual void Foo(int x, int y) = 0;\r\n\r\n    virtual ~IHogeable() = default;\r\n\r\nprivate:\r\n    IHogeable(const IHogeable&) = delete;\r\n    IHogeable(IHogeable&&) = delete;\r\n    IHogeable& operator =(const IHogeable&) = delete;\r\n    IHogeable& operator =(IHogeable&&) = delete;\r\n};\r\n<\/pre>\n<p>\u540d\u524d\u306bI\u3092\u4ed8\u3051\u3066\u3044\u308b\u306e\u306f\u3001\u79c1\u306e\u8da3\u5473\uff08COM\u3084.NET\u7531\u6765\uff09\u306a\u306e\u3067\u771f\u4f3c\u306a\u304f\u3066\u69cb\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u306f\u3001\u4ed6\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u8907\u6570\u7d99\u627f\u3057\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u3002OOP\u30af\u30e9\u30b9\u306f1\u3064\u3042\u308b\u3044\u306f\u8907\u6570\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u7d99\u627f\u3057\u3066\u69cb\u3044\u307e\u305b\u3093\u3002\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u304cOOP\u30af\u30e9\u30b9\u3042\u308b\u3044\u306f\u4ed6\u306eclass\u3092\u7d99\u627f\u3059\u308b\u306e\u306f\u3042\u308a\u5f97\u307e\u305b\u3093\uff08\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u304cboost::noncopyable\u304b\u3089\u6d3e\u751f\u3059\u308b\u3068\u3044\u3046\u3088\u3046\u4f8b\u5916\u306f\u3042\u308a\u307e\u3059\u304c\uff09\u3002<\/p>\n<p>\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u3092public\u3067virtual\u306b\u3001\u30b3\u30d4\u30fc\u30fb\u30e0\u30fc\u30d6\u7981\u6b62\u3067\u3042\u308b\u3068\u3053\u308d\u306fOOP\u30af\u30e9\u30b9\u3068\u540c\u3058\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u3068\u3053\u308d\u3001C++\u3067\u7d14\u7c8b\u4eee\u60f3\u95a2\u6570\u3070\u304b\u308a\u3092\u4e26\u3079\u305f\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3068\u3044\u3046\u306e\u306f\u3042\u307e\u308a\u4f5c\u3089\u306a\u3044\u3088\u3046\u306b\u601d\u3044\u307e\u3059\u3002\u5927\u62b5\u3001NVI\u30d1\u30bf\u30fc\u30f3 (Non-Virtual Interface Idiom)\u3067\u4f5c\u308b\u3068\u601d\u3046\u306e\u3067\u3059\uff08NVI\u306b\u3064\u3044\u3066\u306f<a href=\"http:\/\/www.radiumsoftware.com\/0309.html#030929\">Non-Virtual Interface Idiom &#8211; Radium Software Development<\/a>\u306a\u3069\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\uff09\u3002\u3053\u308c\u306f\u3053\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u306b\u5206\u985e\u3059\u3079\u304d\u304b\u6b21\u306eMix-in\u306b\u5206\u985e\u3059\u3079\u304d\u304b\u3001\u82e5\u5e72\u60a9\u307e\u3057\u3044\u3067\u3059\u3002<\/p>\n<pre lang=\"cpp\">\r\nclass IHogeable\r\n{\r\npublic:\r\n    void Foo(int x, int y)\r\n    {\r\n        if (x < 0 || y < 0)\r\n        {\r\n            throw new out_of_range(\"\u2026\u2026\");\r\n        }\r\n        FooImpl(x, y);\r\n    }\r\n\r\n    void Foo(Point pt)\r\n    {\r\n        return Foo(pt.X, pt.Y);\r\n    }\r\n\r\n    virtual ~IHogeable() = default;\r\n\r\nprotected:\r\n    virtual void FooImpl(int x, int y) = 0;\r\n\r\nprivate:\r\n    IHogeable(const IHogeable&#038;) = delete;\r\n    IHogeable(IHogeable&#038;&#038;) = delete;\r\n    IHogeable&#038; operator =(const IHogeable&#038;) = delete;\r\n    IHogeable&#038; operator =(IHogeable&#038;&#038;) = delete;\r\n};\r\n<\/pre>\n<hr \/>\n<p>3\u3064\u76ee\u3001<strong>\u300cMix-in\u300d<\/strong>\u3067\u3059\u3002<\/p>\n<p>\u5236\u7d04\u3092\u8ab2\u3057\u3066\u591a\u91cd\u7d99\u627f\u3092\u4f7f\u3046\u3068\u3044\u3046\u8003\u3048\u65b9\u3068\u3044\u3063\u3066\u5408\u3063\u3066\u3044\u308b\u3067\u3057\u3087\u3046\u304b\u306d\u3002\u79c1\u304c\u6700\u521d\u306b\u898b\u305f\u307e\u3068\u3082\u306a\u8aac\u660e\u306f<a href=\"http:\/\/itpro.nikkeibp.co.jp\/article\/COLUMN\/20050915\/221232\/\">\u307e\u3064\u3082\u3068\u76f4\u4f1d\u3000\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u30aa\u30ad\u30c6 \u7b2c3\u56de\uff083\uff09 - \u307e\u3064\u3082\u3068\u76f4\u4f1d \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u30aa\u30ad\u30c6\uff1aITpro<\/a>\u3060\u3063\u305f\u3088\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\u3002\u3053\u3053\u306b\u306f\u3001Mix-in\u306b\u3064\u3044\u3066\u6b21\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<\/p>\n<blockquote>\n<p>Mix-in\u3068\u3044\u3046\u306e\u306f\u5143\u3005Lisp\u754c\u3067\u59cb\u307e\u3063\u305f\u591a\u91cd\u7d99\u627f\u306e\u4f7f\u3044\u65b9\u3067\u3059\u3002Mix-in\u624b\u6cd5\u306b\u306f\u6b21\u306e2\u3064\u306e\u6761\u4ef6\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u901a\u5e38\u306e\u7d99\u627f\u306f\u5358\u4e00\u7d99\u627f\u306b\u9650\u308b<\/li>\n<li>2\u3064\u3081\u4ee5\u964d\u306e\u7d99\u627f\u306f\uff0cMix-in\u3068\u547c\u3070\u308c\u308b\u62bd\u8c61\u30af\u30e9\u30b9\u304b\u3089\u306b\u9650\u5b9a\u3059\u308b<\/li>\n<\/ul>\n<p>Mix-in\u30af\u30e9\u30b9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u7279\u5fb4\u3092\u5099\u3048\u305f\u62bd\u8c61\u30af\u30e9\u30b9\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u5358\u72ec\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u3089\u306a\u3044<\/li>\n<li>\u901a\u5e38\u306e\u30af\u30e9\u30b9\u304b\u3089\u7d99\u627f\u3057\u306a\u3044<\/li>\n<\/ul>\n<\/blockquote>\n<p>\u79c1\u3068\u3057\u3066\u306f\u3001Mix-in class\u3078\u30a2\u30c3\u30d7\u30ad\u30e3\u30b9\u30c8\u3057\u3066\u306e\uff08\u5b9f\u884c\u6642\u306e\uff09\u591a\u614b\u6027\u306f\u5fc5\u8981\u3068\u3057\u306a\u3044\u3068\u3044\u3046\u5370\u8c61\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001Mix-in class\u3067\u306fprotected\u975evirtual\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u3068\u3057\u307e\u3059\u3002Mix-in class\u3092\u7d99\u627f\u3059\u308b\u969b\u306fprotected\u307e\u305f\u306fprivate\u7d99\u627f\u3068\u3044\u3046\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001CRTP (Curiously recurring template pattern)\u3068\u306e\u76f8\u6027\u3082\u826f\u3044\u3067\u3059\u3002<\/p>\n<p>Mix-in\u306eclass\u306f\u3001\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u540c\u69d81\u3064\u3042\u308b\u3044\u306f\u8907\u6570\u306eMix-in\u304b\u3089\u6d3e\u751f\u3057\u3066\u69cb\u3044\u307e\u305b\u3093\u3002\u307e\u305f\u3001\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u30921\u3064\u307e\u305f\u306f\u8907\u6570\u7d99\u627f\u3059\u308b\u3053\u3068\u3082\u69cb\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u30b3\u30d4\u30fc\u30fb\u30e0\u30fc\u30d6\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fb\u4ee3\u5165\u6f14\u7b97\u5b50\u306f\u30b1\u30fc\u30b9\u30d0\u30a4\u30b1\u30fc\u30b9\u3067\u3059\u3002\u3068\u3044\u3046\u306e\u3082\u3001\u3053\u306eMix-in\u306eclass\u3001\u7528\u9014\u306b\u3088\u3063\u3066\u306fOOP\u30af\u30e9\u30b9\u306e\u307b\u304b\u3001\u5f8c\u8ff0\u3059\u308b\u30c7\u30fc\u30bf\u62bd\u8c61\u306eclass\u304c\u7d99\u627f\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u5f97\u308b\u305f\u3081\u3067\u3059\u3002\u6b21\u306e\u53ef\u80fd\u6027\u304c\u3042\u308a\u5f97\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<ul>\n<li>\u3059\u3079\u3066delete\uff08OOP\u30af\u30e9\u30b9\u30fb\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u540c\u69d8\uff09<\/li>\n<li>\u30e0\u30fc\u30d6\u306e\u307fprotected\u3067\u5b9a\u7fa9<\/li>\n<li>\u30e0\u30fc\u30d6\u30fb\u30b3\u30d4\u30fc\u3092protected\u3067\u5b9a\u7fa9<\/li>\n<\/ul>\n<p>\u3044\u305a\u308c\u306b\u305b\u3088\u3001\u5b9a\u7fa9\u3059\u308b\u5834\u5408\u306f\u539f\u5247\u3068\u3057\u3066default\u3067\u5b9a\u7fa9\u3057\u307e\u3057\u3087\u3046\u3001\u3068\u3044\u3046\u70b9\u306f\u5909\u308f\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>Boost.Operators\u3084Boost.Noncopyable\u3082\u3053\u3053\u306b\u5206\u985e\u3057\u307e\u3059\u3002<\/p>\n<pre lang=\"cpp\">\r\ntemplate<typename T>\r\nclass IUnknownCounter\r\n{\r\n    long AddRefImpl()\r\n    {\r\n        return count++;\r\n    }\r\n\r\n    long ReleaseImpl()\r\n    {\r\n        long ret = --count;\r\n        if (ret == 0)\r\n        {\r\n            delete boost::polymorphic_downcast<T>(this);\r\n        }\r\n        return ret;\r\n    }\r\n\r\nprotected:\r\n    ~IUnknownCounter() = default;\r\n    IUnknownCounter(const IUnknownCounter&) = delete;\r\n    IUnknownCounter(const&&) = delete;\r\n    IUnknownCounter& operator =(const IUnknownCounter&) = delete;\r\n    IUnknownCounter& operator =(IUnknownCounter&&) = delete;\r\n\r\nprivate:\r\n    std::atomic<long> count;\r\n};\r\n<\/pre>\n<hr \/>\n<p>4\u3064\u76ee\u3001\u672c\u65e5\u306e\u6700\u5f8c\u3001<strong>\u300c\u30c7\u30fc\u30bf\u62bd\u8c61\u300d<\/strong>\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001virutal\u30e1\u30f3\u30d0\u95a2\u6570\u306b\u3088\u308b\u591a\u614b\u6027\u306e\u5b9f\u73fe\u3092\u5229\u7528\u3057\u306a\u3044class\u3067\u3059\u3002\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3082\u5404\u7a2eSTL\u30b3\u30f3\u30c6\u30ca\u3084\u30a4\u30c6\u30ec\u30fc\u30bf\u3001std::basic_string (std::string)\u3001std::thread\u306a\u3069\u591a\u6570\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u975evirtual\u3067public\u3067\u3059\u3002\u7d99\u627f\u306f\u539f\u5247\u3068\u3057\u3066\u7528\u3044\u307e\u305b\u3093\u304c\u3001Mix-in class\u3092\u7d99\u627f\u3059\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u3059\uff08\u4f8b\uff1a\u30a4\u30c6\u30ec\u30fc\u30bf\u306e\u5b9f\u88c5\u306bboost::iterator_facade (Mix-in)\u3092\u7d99\u627f\uff09\u3002<\/p>\n<p>\u30e0\u30fc\u30d6\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fb\u30e0\u30fc\u30d6\u4ee3\u5165\u6f14\u7b97\u5b50\u306f\u3067\u304d\u308b\u9650\u308apublic\u306b\u5b9a\u7fa9\uff08\u3082\u3061\u308d\u3093default\u5b9a\u7fa9\u3092\u63a8\u5968\uff09\u3001\u53ef\u80fd\u306a\u3089\u30b3\u30d4\u30fc\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30fb\u30b3\u30d4\u30fc\u4ee3\u5165\u6f14\u7b97\u5b50\u3082\u5b9a\u7fa9\uff08\u3082\u3061\u308d\u3093default\u5b9a\u7fa9\u3092\u63a8\u5968\uff09\u3057\u307e\u3059\u3002<\/p>\n<pre lang=\"cpp\">\r\nclass UserInfo\r\n{\r\npublic:\r\n    UserInfo(std::string userName, ptime loginTime);\r\n\r\n    std::string GetName() const;\r\n    ptime GetLastLoginTime() const;\r\n\r\n    UserInfo(UserInfo const&) = default;\r\n    UserInfo(UserInfo&&) = default;\r\n    UserInfo& operator =(UserInfo const&) = default;\r\n    UserInfo& operator =(UserInfo&&) = default;\r\n\r\n    ~UserInfo() = default;\r\n\r\nprivate:\r\n    std::string name;\r\n    ptime lastLogin;\r\n};\r\n<\/pre>\n<hr\/>\n<p>\u7e70\u308a\u8fd4\u3057\u307e\u3059\u304c\u3001\u3069\u306e\u5834\u5408\u3067\u3082\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u306fdefault\u3067\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u81ea\u5206\u81ea\u8eab\u3067\u306f\u66f8\u304d\u307e\u305b\u3093\u3002\u3069\u3046\u3044\u3046\u3053\u3068\u304b\u3068\u8a00\u3046\u3068\u3001\u5fc5\u8981\u306a\u89e3\u653e\u51e6\u7406\u306f\u3067\u304d\u308b\u9650\u308a\u30e1\u30f3\u30d0\u5909\u6570\uff08\u306e\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\uff09\u306b\u4efb\u305b\u308b\u3053\u3068\u3067\u3001\u81ea\u5206\uff08\u3053\u306e\u30af\u30e9\u30b9\uff09\u81ea\u8eab\u3067\u306f\u300c\u7279\u306b\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u3067\u3084\u308b\u3053\u3068\u306f\u306a\u3044\u300d\u3068\u3044\u3046\u72b6\u614b\u3092\u76ee\u6307\u3057\u307e\u3059\u3002\u305d\u306e\u89e3\u653e\u51e6\u7406\u306e\u305f\u3081\u306e\u30af\u30e9\u30b9\u3060\u3051\u304c\u552f\u4e00\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u660e\u793a\u7684\u306b\u5b9a\u7fa9\u3057\u3066\u3088\u3044\u4f8b\u5916\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u305d\u308c\u3059\u3089\u3082std::shared_ptr\u3084std::unique_ptr\u3067\u8db3\u308a\u308b\u5834\u5408\u3082\u591a\u3044\u3067\u3057\u3087\u3046\u3002unique_ptr\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u304c\u53c2\u8003\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/krustf\/20100827\/1282915158\">unique_ptr \u306e\u30c7\u30ea\u30fc\u30bf\u6307\u5b9a - krustf \u306e\u96d1\u8a18<\/a><\/li>\n<li><a href=\"https:\/\/cpplover.blogspot.com\/2010\/02\/blog-post_8598.html\">\u672c\u306e\u866b: \u6b63\u3057\u3044\u65b9\u6cd5\u3058\u3083\u306a\u3044\u306a\u3041<\/a><\/li>\n<\/ul>\n<p>\u6700\u5f8c\u306b\u3001\u4eca\u65e5\u306e\u8a18\u4e8b\u306e\u5927\u5143\u306e\u30cd\u30bf\u306f<a href=\"http:\/\/www.ogis-ri.co.jp\/otc\/hiroba\/technical\/CppDesignNote\/\">C++ \u30af\u30e9\u30b9\u8a2d\u8a08\u306b\u95a2\u3059\u308b\u30ce\u30fc\u30c8<\/a>\u3067\u3059\u3002\u3053\u308c\u3092\u81ea\u5206\u306a\u308a\u306b\u89e3\u91c8\u3057\u3066\u8003\u3048\u3092\u307e\u3068\u3081\u305f\u3044\u3068\u3044\u3046\u601d\u3044\u3067\u3001\u672c\u8a18\u4e8b\u3092\u66f8\u3053\u3046\u3068\u601d\u3044\u307e\u3057\u305f\u3002\u611f\u8b1d\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n<hr \/>\n<ul>\n<li><ins datetime=\"2012-05-08T02:55:00+09:00\">2012\u5e745\u67088\u65e5\uff1a\u8aa4\u5b57\u306e\u4fee\u6b63\u3084\u8868\u73fe\u306e\u5909\u66f4\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/ins><\/li>\n<li><ins datetime=\"2015-01-18T02:52:00+09:00\">2015\u5e741\u670818\u65e5\uff1a\u4f8b\u793a\u306e\u30b3\u30fc\u30c9\u306e\u8aa4\u308a\u306e\u4fee\u6b63\u3068\u8868\u73fe\u306e\u5909\u66f4\uff08\u4e3b\u306b\u6f22\u5b57\u30fb\u304b\u306a\u306e\u9078\u629e\u306b\u3064\u3044\u3066\uff09\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/ins><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>C++\u306b\u304a\u3044\u3066\u3001class\u306b\u306f\u69d8\u3005\u306a\u7528\u9014\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3069\u306e\u3088\u3046\u306aclass\u304c\u5b58\u5728\u3059\u308b\u306e\u304b\u3001\u79c1\u306a\u308a\u306e\u5206\u985e\u30fb\u6574\u7406\u3092\u8a66\u307f\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u3001\u305d\u308c\u305e\u308c\u306b\u3064\u3044\u3066\u3001\u5178\u578b\u7684\u306b\u306f\u3069\u306e\u3088\u3046\u306a\u5b9f\u88c5\u306b\u306a\u308b\u306e\u304b\u4f8b\u3092\u793a\u3057\u3064\u3064\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[260,50],"class_list":["post-451","post","type-post","status-publish","format-standard","hentry","category-cpp","tag-advent-calendar","tag-cplusplus11"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C++11\u6642\u4ee3\u306b\u304a\u3051\u308b\u30af\u30e9\u30b9\u306e\u66f8\u304d\u65b9 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d<\/title>\n<meta name=\"description\" content=\"C++\u306b\u304a\u3044\u3066\u3001class\u306b\u306f\u69d8\u3005\u306a\u7528\u9014\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3069\u306e\u3088\u3046\u306aclass\u304c\u5b58\u5728\u3059\u308b\u306e\u304b\u3001\u79c1\u306a\u308a\u306e\u5206\u985e\u30fb\u6574\u7406\u3092\u8a66\u307f\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u3001\u305d\u308c\u305e\u308c\u306b\u3064\u3044\u3066\u3001\u5178\u578b\u7684\u306b\u306f\u3069\u306e\u3088\u3046\u306a\u5b9f\u88c5\u306b\u306a\u308b\u306e\u304b\u4f8b\u3092\u793a\u3057\u3064\u3064\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dev.activebasic.com\/egtra\/2011\/12\/02\/451\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C++11\u6642\u4ee3\u306b\u304a\u3051\u308b\u30af\u30e9\u30b9\u306e\u66f8\u304d\u65b9 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\" \/>\n<meta property=\"og:description\" content=\"C++\u306b\u304a\u3044\u3066\u3001class\u306b\u306f\u69d8\u3005\u306a\u7528\u9014\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3069\u306e\u3088\u3046\u306aclass\u304c\u5b58\u5728\u3059\u308b\u306e\u304b\u3001\u79c1\u306a\u308a\u306e\u5206\u985e\u30fb\u6574\u7406\u3092\u8a66\u307f\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u3001\u305d\u308c\u305e\u308c\u306b\u3064\u3044\u3066\u3001\u5178\u578b\u7684\u306b\u306f\u3069\u306e\u3088\u3046\u306a\u5b9f\u88c5\u306b\u306a\u308b\u306e\u304b\u4f8b\u3092\u793a\u3057\u3064\u3064\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dev.activebasic.com\/egtra\/2011\/12\/02\/451\/\" \/>\n<meta property=\"og:site_name\" content=\"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ysk.noh\" \/>\n<meta property=\"article:published_time\" content=\"2011-12-02T14:59:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-04-21T16:23:46+00:00\" \/>\n<meta name=\"author\" content=\"egtra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@egtra\" \/>\n<meta name=\"twitter:site\" content=\"@egtra\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"egtra\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/2011\/12\/02\/451\/\",\"url\":\"https:\/\/dev.activebasic.com\/egtra\/2011\/12\/02\/451\/\",\"name\":\"C++11\u6642\u4ee3\u306b\u304a\u3051\u308b\u30af\u30e9\u30b9\u306e\u66f8\u304d\u65b9 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\",\"isPartOf\":{\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#website\"},\"datePublished\":\"2011-12-02T14:59:49+00:00\",\"dateModified\":\"2018-04-21T16:23:46+00:00\",\"author\":{\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164\"},\"description\":\"C++\u306b\u304a\u3044\u3066\u3001class\u306b\u306f\u69d8\u3005\u306a\u7528\u9014\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3069\u306e\u3088\u3046\u306aclass\u304c\u5b58\u5728\u3059\u308b\u306e\u304b\u3001\u79c1\u306a\u308a\u306e\u5206\u985e\u30fb\u6574\u7406\u3092\u8a66\u307f\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u3001\u305d\u308c\u305e\u308c\u306b\u3064\u3044\u3066\u3001\u5178\u578b\u7684\u306b\u306f\u3069\u306e\u3088\u3046\u306a\u5b9f\u88c5\u306b\u306a\u308b\u306e\u304b\u4f8b\u3092\u793a\u3057\u3064\u3064\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/2011\/12\/02\/451\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dev.activebasic.com\/egtra\/2011\/12\/02\/451\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/2011\/12\/02\/451\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/dev.activebasic.com\/egtra\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C++11\u6642\u4ee3\u306b\u304a\u3051\u308b\u30af\u30e9\u30b9\u306e\u66f8\u304d\u65b9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#website\",\"url\":\"https:\/\/dev.activebasic.com\/egtra\/\",\"name\":\"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d\",\"description\":\"\u982d\u306e\u4e2d\u306e\u304b\u3051\u3089\u3002ActiveBasic\u3092\u4e2d\u5fc3\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u8a71\u3092\u307c\u3061\u307c\u3061\u3068\u3002\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dev.activebasic.com\/egtra\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164\",\"name\":\"egtra\",\"sameAs\":[\"https:\/\/x.com\/egtra\"],\"url\":\"https:\/\/dev.activebasic.com\/egtra\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C++11\u6642\u4ee3\u306b\u304a\u3051\u308b\u30af\u30e9\u30b9\u306e\u66f8\u304d\u65b9 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","description":"C++\u306b\u304a\u3044\u3066\u3001class\u306b\u306f\u69d8\u3005\u306a\u7528\u9014\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3069\u306e\u3088\u3046\u306aclass\u304c\u5b58\u5728\u3059\u308b\u306e\u304b\u3001\u79c1\u306a\u308a\u306e\u5206\u985e\u30fb\u6574\u7406\u3092\u8a66\u307f\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u3001\u305d\u308c\u305e\u308c\u306b\u3064\u3044\u3066\u3001\u5178\u578b\u7684\u306b\u306f\u3069\u306e\u3088\u3046\u306a\u5b9f\u88c5\u306b\u306a\u308b\u306e\u304b\u4f8b\u3092\u793a\u3057\u3064\u3064\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002","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:\/\/dev.activebasic.com\/egtra\/2011\/12\/02\/451\/","og_locale":"ja_JP","og_type":"article","og_title":"C++11\u6642\u4ee3\u306b\u304a\u3051\u308b\u30af\u30e9\u30b9\u306e\u66f8\u304d\u65b9 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","og_description":"C++\u306b\u304a\u3044\u3066\u3001class\u306b\u306f\u69d8\u3005\u306a\u7528\u9014\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3069\u306e\u3088\u3046\u306aclass\u304c\u5b58\u5728\u3059\u308b\u306e\u304b\u3001\u79c1\u306a\u308a\u306e\u5206\u985e\u30fb\u6574\u7406\u3092\u8a66\u307f\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u3001\u305d\u308c\u305e\u308c\u306b\u3064\u3044\u3066\u3001\u5178\u578b\u7684\u306b\u306f\u3069\u306e\u3088\u3046\u306a\u5b9f\u88c5\u306b\u306a\u308b\u306e\u304b\u4f8b\u3092\u793a\u3057\u3064\u3064\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002","og_url":"https:\/\/dev.activebasic.com\/egtra\/2011\/12\/02\/451\/","og_site_name":"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","article_publisher":"https:\/\/www.facebook.com\/ysk.noh","article_published_time":"2011-12-02T14:59:49+00:00","article_modified_time":"2018-04-21T16:23:46+00:00","author":"egtra","twitter_card":"summary_large_image","twitter_creator":"@egtra","twitter_site":"@egtra","twitter_misc":{"\u57f7\u7b46\u8005":"egtra","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/dev.activebasic.com\/egtra\/2011\/12\/02\/451\/","url":"https:\/\/dev.activebasic.com\/egtra\/2011\/12\/02\/451\/","name":"C++11\u6642\u4ee3\u306b\u304a\u3051\u308b\u30af\u30e9\u30b9\u306e\u66f8\u304d\u65b9 - \u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","isPartOf":{"@id":"https:\/\/dev.activebasic.com\/egtra\/#website"},"datePublished":"2011-12-02T14:59:49+00:00","dateModified":"2018-04-21T16:23:46+00:00","author":{"@id":"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164"},"description":"C++\u306b\u304a\u3044\u3066\u3001class\u306b\u306f\u69d8\u3005\u306a\u7528\u9014\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3069\u306e\u3088\u3046\u306aclass\u304c\u5b58\u5728\u3059\u308b\u306e\u304b\u3001\u79c1\u306a\u308a\u306e\u5206\u985e\u30fb\u6574\u7406\u3092\u8a66\u307f\u307e\u3057\u305f\u3002\u305d\u3057\u3066\u3001\u305d\u308c\u305e\u308c\u306b\u3064\u3044\u3066\u3001\u5178\u578b\u7684\u306b\u306f\u3069\u306e\u3088\u3046\u306a\u5b9f\u88c5\u306b\u306a\u308b\u306e\u304b\u4f8b\u3092\u793a\u3057\u3064\u3064\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/dev.activebasic.com\/egtra\/2011\/12\/02\/451\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dev.activebasic.com\/egtra\/2011\/12\/02\/451\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dev.activebasic.com\/egtra\/2011\/12\/02\/451\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/dev.activebasic.com\/egtra\/"},{"@type":"ListItem","position":2,"name":"C++11\u6642\u4ee3\u306b\u304a\u3051\u308b\u30af\u30e9\u30b9\u306e\u66f8\u304d\u65b9"}]},{"@type":"WebSite","@id":"https:\/\/dev.activebasic.com\/egtra\/#website","url":"https:\/\/dev.activebasic.com\/egtra\/","name":"\u30a4\u30b0\u30c8\u30e9\u30f3\u30b9\u306e\u982d\u306e\u4e2d","description":"\u982d\u306e\u4e2d\u306e\u304b\u3051\u3089\u3002ActiveBasic\u3092\u4e2d\u5fc3\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u8a71\u3092\u307c\u3061\u307c\u3061\u3068\u3002","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dev.activebasic.com\/egtra\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/dev.activebasic.com\/egtra\/#\/schema\/person\/8de756b2ff20b964f64594dfe8f18164","name":"egtra","sameAs":["https:\/\/x.com\/egtra"],"url":"https:\/\/dev.activebasic.com\/egtra\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/posts\/451"}],"collection":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/comments?post=451"}],"version-history":[{"count":0,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/posts\/451\/revisions"}],"wp:attachment":[{"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/media?parent=451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/categories?post=451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.activebasic.com\/egtra\/wp-json\/wp\/v2\/tags?post=451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}