{"id":1939,"date":"2025-03-24T08:49:34","date_gmt":"2025-03-23T23:49:34","guid":{"rendered":"https:\/\/dexall.co.jp\/articles\/?p=1939"},"modified":"2025-03-24T08:49:34","modified_gmt":"2025-03-23T23:49:34","slug":"c%e3%81%ae%e5%8f%8b%e3%81%ae%e5%ae%8c%e5%85%a8%e3%82%ac%e3%82%a4%e3%83%89%ef%bc%9a%e6%ad%a3%e3%81%97%e3%81%84%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%a85%e3%81%a4%e3%81%ae%e5%ae%9f%e8%b7%b5%e7%9a%84","status":"publish","type":"post","link":"https:\/\/dexall.co.jp\/articles\/?p=1939","title":{"rendered":"C++\u306e\u53cb\u306e\u5b8c\u5168\u30ac\u30a4\u30c9\uff1a\u6b63\u3057\u3044\u4f7f\u3044\u65b9\u30685\u3064\u306e\u5b9f\u8df5\u7684\u306a\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9"},"content":{"rendered":"\n<div class=\"toc\"><br \/>\n<b>Warning<\/b>:  Undefined array key \"is_admin\" in <b>\/home\/xs392991\/dexall.co.jp\/public_html\/articles\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>116<\/b><br \/>\n<br \/>\n<b>Warning<\/b>:  Undefined array key \"is_category_top\" in <b>\/home\/xs392991\/dexall.co.jp\/public_html\/articles\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>121<\/b><br \/>\n<br \/>\n<b>Warning<\/b>:  Undefined array key \"is_top\" in <b>\/home\/xs392991\/dexall.co.jp\/public_html\/articles\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>128<\/b><br \/>\n    <div id=\"toc_container\" class=\"sgb-toc--bullets js-smooth-scroll\" data-dialog-title=\"\u76ee\u6b21\">\n      <p class=\"toc_title\">\u76ee\u6b21 <\/p>\n      <ul class=\"toc_list\">  <li class=\"first\">    <a href=\"#i-0\">C++ friends\u3068\u306f\uff1a\u57fa\u790e\u304b\u3089\u7406\u89e3\u3059\u308b\u7279\u5225\u306a\u30a2\u30af\u30bb\u30b9\u6a29<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-1\">\u30af\u30e9\u30b9\u306e\u30ab\u30d7\u30bb\u30eb\u5316\u3068\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30e1\u30f3\u30d0\u30fc\u3078\u306e\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u306e\u4ed5\u7d44\u307f<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-2\">\u306a\u305cC++\u306bfriend\u6a5f\u80fd\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u306e\u304b<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-3\">\u30d5\u30ec\u30f3\u30c9\u306e\u6b63\u3057\u3044\u5ba3\u8a00\u65b9\u6cd5\u3068\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-4\">\u30d5\u30ec\u30f3\u30c9\u95a2\u6570\u306e\u5ba3\u8a00\u3068\u5b9f\u88c5\u65b9\u6cd5<\/a>      <\/li>      <li>        <a href=\"#i-5\">\u30d5\u30ec\u30f3\u30c9\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u3068\u30b9\u30b3\u30fc\u30d7\u306e\u7406\u89e3<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-6\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30af\u30e9\u30b9\u3067\u306e\u30d5\u30ec\u30f3\u30c9\u5ba3\u8a00\u306e\u7279\u6b8a\u6027<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-7\">\u5b9f\u8df5\u3067\u6d3b\u304d\u308b5\u3064\u306e\u30d5\u30ec\u30f3\u30c9\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-8\">\u6f14\u7b97\u5b50\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u3067\u306e\u6d3b\u7528\u4f8b<\/a>      <\/li>      <li>        <a href=\"#i-9\">\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u5b9f\u88c5\u6642\u306e\u4f7f\u7528\u65b9\u6cd5<\/a>      <\/li>      <li>        <a href=\"#i-10\">\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3067\u306e\u52b9\u679c\u7684\u306a\u6d3b\u7528\u6cd5<\/a>      <\/li>      <li>        <a href=\"#i-11\">STL\u30b3\u30f3\u30c6\u30ca\u306e\u5b9f\u88c5\u306b\u5b66\u3076friend\u306e\u4f7f\u3044\u65b9<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-12\">\u52b9\u7387\u7684\u306a\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u306e\u305f\u3081\u306e\u53cb\u9054\u6d3b\u7528\u8853<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-13\">\u53cb\u4eba\u3092\u4f7f\u7528\u3059\u308b\u969b\u306e\u6ce8\u610f\u70b9\u3068\u4ee3\u66ff\u624b\u6bb5<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-14\">\u30ab\u30d7\u30bb\u30eb\u5316\u3092\u6700\u5927\u9650\u306b\u7834\u58ca\u3057\u306a\u3044\u305f\u3081\u306e\u8a2d\u8a08\u6307\u91dd<\/a>      <\/li>      <li>        <a href=\"#i-15\">\u53cb\u4eba\u306e\u4f7f\u7528\u304c\u6b63\u3057\u3044\u30b1\u30fc\u30b9\u3068\u907f\u3051\u308b\u3079\u304d\u30b1\u30fc\u30b9<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-16\">\u53cb\u4eba\u306e\u4ee3\u308f\u308a\u306b\u691c\u8a0e\u3059\u3079\u304d\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3<\/a>      <\/li>    <\/ul>  <\/li>  <li class=\"last\">    <a href=\"#i-17\">\u73fe\u4ee3\u306eC++\u958b\u767a\u306b\u304a\u3051\u308b\u53cb\u4eba\u306e\u3068\u308a\u3042\u3048\u305a<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-18\">C++17\u4ee5\u964d\u3067\u63a8\u5968\u3055\u308c\u308b\u4f7f\u7528\u65b9\u6cd5<\/a>      <\/li>      <li>        <a href=\"#i-19\">\u4e3b\u8981\u306aC++\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u898b\u308bfriend\u306e\u4f8b<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-20\">\u5c06\u6765\u306eC++\u898f\u683c\u306b\u304a\u3051\u308bfriend\u306e\u5c55\u671b<\/a>      <\/li>    <\/ul>  <\/li><\/ul>\n      <a href=\"#\" class=\"sgb-toc-button js-toc-button\" rel=\"nofollow\" data-open-dialog=\"true\"><i class=\"fa fa-list\"><\/i><span class=\"sgb-toc-button__text\">\u76ee\u6b21\u3078<\/span><\/a>\n    <\/div><\/div><h2 class=\"wp-block-heading\" id=\"i-0\">C++ friends\u3068\u306f\uff1a\u57fa\u790e\u304b\u3089\u7406\u89e3\u3059\u308b\u7279\u5225\u306a\u30a2\u30af\u30bb\u30b9\u6a29<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-1\">\u30af\u30e9\u30b9\u306e\u30ab\u30d7\u30bb\u30eb\u5316\u3068\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30e1\u30f3\u30d0\u30fc\u3078\u306e\u30a2\u30af\u30bb\u30b9\u5236\u5fa1\u306e\u4ed5\u7d44\u307f<\/h3>\n\n\n\n<p>C++\u306b\u304a\u3051\u308b\u30ab\u30d7\u30bb\u30eb\u5316\u306f\u3001\u30af\u30e9\u30b9\u306e\u5b9f\u88c5\u8a73\u7d30\u3092\u5916\u90e8\u304b\u3089\u96a0\u853d\u3057\u3001\u30c7\u30fc\u30bf\u306e\u6574\u5408\u6027\u3092\u4fdd\u8b77\u3059\u308b\u91cd\u8981\u306a\u6a5f\u80fd\u3067\u3059\u3002\u901a\u5e38\u3001private\u30e1\u30f3\u30d0\u30fc\u306b\u306f\u540c\u3058\u30af\u30e9\u30b9\u306e\u30e1\u30f3\u30d0\u30fc\u95a2\u6570\u304b\u3089\u3057\u304b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u3001\u958b\u767a\u306b\u304a\u3044\u3066\u6642\u306b\u306f\u3053\u306e\u5236\u9650\u3092\u7279\u5b9a\u306e\u30af\u30e9\u30b9\u3084\u95a2\u6570\u306b\u5bfe\u3057\u3066\u7de9\u548c\u3059\u308b\u5fc5\u8981\u304c\u751f\u3058\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u57fa\u672c\u7684\u306a\u30ab\u30d7\u30bb\u30eb\u5316\u306e\u4f8b\u3067\u3059\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class BankAccount {\nprivate:\n    double balance;  \/\/ \u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30e1\u30f3\u30d0\u30fc\n    std::string accountNumber;\n\npublic:\n    \/\/ \u516c\u958b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\n    void deposit(double amount) {\n        if (amount &gt; 0) {\n            balance += amount;\n        }\n    }\n\n    double getBalance() const {\n        return balance;\n    }\n};<\/pre>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u3001balance\u3084accountNumber\u306f\u76f4\u63a5\u5916\u90e8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u3088\u3046\u4fdd\u8b77\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-2\">\u306a\u305cC++\u306bfriend\u6a5f\u80fd\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u306e\u304b<\/h3>\n\n\n\n<p>friend\u6a5f\u80fd\u306f\u3001\u4ee5\u4e0b\u306e\u91cd\u8981\u306a\u76ee\u7684\u306e\u305f\u3081\u306b\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30ab\u30d7\u30bb\u30eb\u5316\u306e\u9078\u629e\u7684\u306a\u7de9\u548c<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7279\u5b9a\u306e\u30af\u30e9\u30b9\u3084\u95a2\u6570\u306b\u5bfe\u3057\u3066\u306e\u307f\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30e1\u30f3\u30d0\u30fc\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef<\/li>\n\n\n\n<li>\u5b9f\u88c5\u306e\u67d4\u8edf\u6027\u3068\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30d0\u30e9\u30f3\u30b9\u3092\u53d6\u308b<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u52b9\u7387\u7684\u306a\u64cd\u4f5c\u306e\u5b9f\u73fe<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>2\u3064\u306e\u30af\u30e9\u30b9\u9593\u3067\u306e\u5bc6\u63a5\u306a\u5354\u8abf\u52d5\u4f5c\u304c\u5fc5\u8981\u306a\u5834\u5408<\/li>\n\n\n\n<li>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30af\u30ea\u30c6\u30a3\u30ab\u30eb\u306a\u51e6\u7406\u3067\u306e\u76f4\u63a5\u30a2\u30af\u30bb\u30b9<\/li>\n<\/ul>\n\n\n\n<p>\u5b9f\u969b\u306e\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class Matrix {\nprivate:\n    std::vector&lt;std::vector&lt;double&gt;&gt; data;\n\n    \/\/ \u884c\u5217\u6f14\u7b97\u306e\u305f\u3081\u306e\u53cb\u9054\u95a2\u6570\u3092\u5ba3\u8a00\n    friend Matrix operator+(const Matrix&amp; lhs, const Matrix&amp; rhs);\n    friend class MatrixCalculator;  \/\/ \u884c\u5217\u8a08\u7b97\u7528\u306e\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30af\u30e9\u30b9\n\npublic:\n    Matrix(size_t rows, size_t cols) : data(rows, std::vector&lt;double&gt;(cols)) {}\n\n    \/\/ \u516c\u958b\u30e1\u30bd\u30c3\u30c9\n    size_t rows() const { return data.size(); }\n    size_t cols() const { return data[0].size(); }\n};\n\n\/\/ \u30d5\u30ec\u30f3\u30c9\u95a2\u6570\u306e\u5b9f\u88c5 - private\u30e1\u30f3\u30d0\u30fc\u306b\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\nMatrix operator+(const Matrix&amp; lhs, const Matrix&amp; rhs) {\n    Matrix result(lhs.rows(), lhs.cols());\n    for (size_t i = 0; i &lt; lhs.rows(); ++i) {\n        for (size_t j = 0; j &lt; lhs.cols(); ++j) {\n            result.data[i][j] = lhs.data[i][j] + rhs.data[i][j];\n        }\n    }\n    return result;\n}<\/pre>\n\n\n\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u884c\u5217\u306e\u52a0\u7b97\u6f14\u7b97\u5b50\u3092\u30d5\u30ec\u30f3\u30c9\u95a2\u6570\u3068\u3057\u3066\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30c7\u30fc\u30bf\u30e1\u30f3\u30d0\u30fc\u3078\u306e\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u306b\u3088\u308b\u52b9\u7387\u7684\u306a\u6f14\u7b97<\/li>\n\n\n\n<li>\u30ab\u30d7\u30bb\u30eb\u5316\u3092\u7dad\u6301\u3057\u306a\u304c\u3089\u306e\u67d4\u8edf\u306a\u5b9f\u88c5<\/li>\n\n\n\n<li>\u95a2\u9023\u6a5f\u80fd\u306e\u8ad6\u7406\u7684\u306a\u30b0\u30eb\u30fc\u30d7\u5316<\/li>\n<\/ul>\n\n\n\n<p>\u304c\u5b9f\u73fe\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>friend\u306e\u4f7f\u7528\u306f\u3001\u5358\u306a\u308b\u300c\u30ab\u30d7\u30bb\u30eb\u5316\u306e\u7834\u58ca\u300d\u3067\u306f\u306a\u304f\u3001\u30af\u30e9\u30b9\u8a2d\u8a08\u306b\u304a\u3051\u308b\u91cd\u8981\u306a\u30c4\u30fc\u30eb\u3068\u3057\u3066\u8003\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u9069\u5207\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u306e\u4fdd\u5b88\u6027\u3068\u52b9\u7387\u6027\u306e\u4e21\u7acb\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-3\">\u30d5\u30ec\u30f3\u30c9\u306e\u6b63\u3057\u3044\u5ba3\u8a00\u65b9\u6cd5\u3068\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-4\">\u30d5\u30ec\u30f3\u30c9\u95a2\u6570\u306e\u5ba3\u8a00\u3068\u5b9f\u88c5\u65b9\u6cd5<\/h3>\n\n\n\n<p>\u30d5\u30ec\u30f3\u30c9\u95a2\u6570\u306b\u306f\u3001\u30b0\u30ed\u30fc\u30d0\u30eb\u95a2\u6570\u3068\u3057\u3066\u5ba3\u8a00\u3059\u308b\u65b9\u6cd5\u3068\u30af\u30e9\u30b9\u306e\u30e1\u30f3\u30d0\u30fc\u95a2\u6570\u3068\u3057\u3066\u5ba3\u8a00\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u3067\u4e21\u65b9\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u8aac\u660e\u3057\u307e\u3059\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class SecureData {\nprivate:\n    int secretValue;\n\npublic:\n    SecureData(int value) : secretValue(value) {}\n\n    \/\/ \u30b0\u30ed\u30fc\u30d0\u30eb\u30d5\u30ec\u30f3\u30c9\u95a2\u6570\u306e\u5ba3\u8a00\n    friend void displaySecret(const SecureData&amp; data);\n\n    \/\/ \u4ed6\u30af\u30e9\u30b9\u306e\u30e1\u30f3\u30d0\u30fc\u95a2\u6570\u3092\u30d5\u30ec\u30f3\u30c9\u3068\u3057\u3066\u5ba3\u8a00\n    friend void DataAnalyzer::analyze(const SecureData&amp; data);\n};\n\n\/\/ \u30d5\u30ec\u30f3\u30c9\u95a2\u6570\u306e\u5b9f\u88c5\nvoid displaySecret(const SecureData&amp; data) {\n    \/\/ private\u30e1\u30f3\u30d0\u30fc\u306b\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\n    std::cout &lt;&lt; \"Secret value: \" &lt;&lt; data.secretValue &lt;&lt; std::endl;\n}<\/pre>\n\n\n\n<p>\u5b9f\u88c5\u6642\u306e\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30d5\u30ec\u30f3\u30c9\u95a2\u6570\u306e\u5ba3\u8a00\u306f\u30af\u30e9\u30b9\u5b9a\u7fa9\u5185\u3067\u884c\u3046<\/li>\n\n\n\n<li>\u30d5\u30ec\u30f3\u30c9\u95a2\u6570\u306e\u5b9f\u88c5\u306f\u30af\u30e9\u30b9\u5916\u3067\u884c\u3046<\/li>\n\n\n\n<li>\u30d5\u30ec\u30f3\u30c9\u95a2\u6570\u306f\u30af\u30e9\u30b9\u306eprivate\u30e1\u30f3\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u53ef\u80fd<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-5\">\u30d5\u30ec\u30f3\u30c9\u30af\u30e9\u30b9\u306e\u5b9a\u7fa9\u3068\u30b9\u30b3\u30fc\u30d7\u306e\u7406\u89e3<\/h3>\n\n\n\n<p>\u30d5\u30ec\u30f3\u30c9\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30af\u30e9\u30b9\u5168\u4f53\u306b\u30d5\u30ec\u30f3\u30c9\u6a29\u9650\u3092\u4ed8\u4e0e\u3067\u304d\u307e\u3059\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class Engine {\nprivate:\n    double temperature;\n    int rpm;\n\n    \/\/ EngineDiagnostics\u30af\u30e9\u30b9\u5168\u4f53\u3092\u30d5\u30ec\u30f3\u30c9\u3068\u3057\u3066\u5ba3\u8a00\n    friend class EngineDiagnostics;\n\npublic:\n    Engine() : temperature(0), rpm(0) {}\n    void run() { \/* ... *\/ }\n};\n\nclass EngineDiagnostics {\npublic:\n    void checkEngine(const Engine&amp; engine) {\n        \/\/ Engine\u30af\u30e9\u30b9\u306eprivate\u30e1\u30f3\u30d0\u30fc\u306b\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\n        if (engine.temperature &gt; 90.0) {\n            std::cout &lt;&lt; \"Warning: Engine temperature too high!\" &lt;&lt; std::endl;\n        }\n        if (engine.rpm &gt; 6000) {\n            std::cout &lt;&lt; \"Warning: RPM too high!\" &lt;&lt; std::endl;\n        }\n    }\n};<\/pre>\n\n\n\n<p>\u30d5\u30ec\u30f3\u30c9\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3059\u308b\u969b\u306e\u6ce8\u610f\u70b9\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30d5\u30ec\u30f3\u30c9\u95a2\u4fc2\u306f\u4e00\u65b9\u5411\u306e\u307f<\/li>\n\n\n\n<li>\u904e\u5ea6\u306a\u4f7f\u7528\u306f\u30ab\u30d7\u30bb\u30eb\u5316\u3092\u5f31\u3081\u308b<\/li>\n\n\n\n<li>\u660e\u78ba\u306a\u7406\u7531\u304c\u3042\u308b\u5834\u5408\u306e\u307f\u4f7f\u7528\u3092\u691c\u8a0e<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-6\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30af\u30e9\u30b9\u3067\u306e\u30d5\u30ec\u30f3\u30c9\u5ba3\u8a00\u306e\u7279\u6b8a\u6027<\/h3>\n\n\n\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30af\u30e9\u30b9\u3067\u306e\u30d5\u30ec\u30f3\u30c9\u5ba3\u8a00\u306b\u306f\u7279\u5225\u306a\u8003\u616e\u304c\u5fc5\u8981\u3067\u3059\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">template&lt;typename T&gt;\nclass Container {\nprivate:\n    T* data;\n    size_t size;\n\n    \/\/ \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30ec\u30f3\u30c9\u95a2\u6570\u306e\u5ba3\u8a00\n    template&lt;typename U&gt;\n    friend void printContainer(const Container&lt;U&gt;&amp; cont);\n\n    \/\/ \u7279\u5b9a\u306e\u578b\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u307f\u3092\u30d5\u30ec\u30f3\u30c9\u306b\u3059\u308b\n    friend class SpecialHandler&lt;T&gt;;\n\npublic:\n    Container(size_t n) : data(new T[n]), size(n) {}\n    ~Container() { delete[] data; }\n};\n\n\/\/ \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30ec\u30f3\u30c9\u95a2\u6570\u306e\u5b9f\u88c5\ntemplate&lt;typename T&gt;\nvoid printContainer(const Container&lt;T&gt;&amp; cont) {\n    for (size_t i = 0; i &lt; cont.size; ++i) {\n        std::cout &lt;&lt; cont.data[i] &lt;&lt; \" \";\n    }\n    std::cout &lt;&lt; std::endl;\n}<\/pre>\n\n\n\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u306e\u30d5\u30ec\u30f3\u30c9\u5ba3\u8a00\u306e\u91cd\u8981\u30dd\u30a4\u30f3\u30c8\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5168\u3066\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u30d5\u30ec\u30f3\u30c9\u306b\u3059\u308b\u5834\u5408<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   template&lt;typename T&gt;\n   friend class Handler;  \/\/ \u5168\u3066\u306eHandler\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u30d5\u30ec\u30f3\u30c9<\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>\u7279\u5b9a\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u307f\u3092\u30d5\u30ec\u30f3\u30c9\u306b\u3059\u308b\u5834\u5408<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   friend class Handler&lt;T&gt;;  \/\/ \u540c\u3058\u578b\u306eHandler\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u307f\u30d5\u30ec\u30f3\u30c9<\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>\u975e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30af\u30e9\u30b9\u3092\u30d5\u30ec\u30f3\u30c9\u306b\u3059\u308b\u5834\u5408<\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">   friend class SpecificHandler;  \/\/ \u901a\u5e38\u306e\u30af\u30e9\u30b9\u3092\u30d5\u30ec\u30f3\u30c9\u3068\u3057\u3066\u5ba3\u8a00<\/pre>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u5ba3\u8a00\u65b9\u6cd5\u3092\u9069\u5207\u306b\u4f7f\u3044\u5206\u3051\u308b\u3053\u3068\u3067\u3001\u5fc5\u8981\u6700\u5c0f\u9650\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u4ed8\u4e0e\u3057\u306a\u304c\u3089\u3001\u67d4\u8edf\u306a\u5b9f\u88c5\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-7\">\u5b9f\u8df5\u3067\u6d3b\u304d\u308b5\u3064\u306e\u30d5\u30ec\u30f3\u30c9\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-8\">\u6f14\u7b97\u5b50\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u3067\u306e\u6d3b\u7528\u4f8b<\/h3>\n\n\n\n<p>\u6f14\u7b97\u5b50\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u306f\u3001\u30d5\u30ec\u30f3\u30c9\u95a2\u6570\u306e\u6700\u3082\u4e00\u822c\u7684\u3067\u5b9f\u7528\u7684\u306a\u4f7f\u7528\u4f8b\u306e\u4e00\u3064\u3067\u3059\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class Vector2D {\nprivate:\n    double x, y;\n\npublic:\n    Vector2D(double x = 0, double y = 0) : x(x), y(y) {}\n\n    \/\/ \u6f14\u7b97\u5b50\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u3092\u30d5\u30ec\u30f3\u30c9\u95a2\u6570\u3068\u3057\u3066\u5ba3\u8a00\n    friend Vector2D operator+(const Vector2D&amp; lhs, const Vector2D&amp; rhs);\n    friend Vector2D operator-(const Vector2D&amp; lhs, const Vector2D&amp; rhs);\n    friend double operator*(const Vector2D&amp; lhs, const Vector2D&amp; rhs); \/\/ \u5185\u7a4d\n    friend std::ostream&amp; operator&lt;&lt;(std::ostream&amp; os, const Vector2D&amp; v);\n};\n\n\/\/ \u30d5\u30ec\u30f3\u30c9\u95a2\u6570\u3068\u3057\u3066\u5b9f\u88c5\u3055\u308c\u305f\u6f14\u7b97\u5b50\nVector2D operator+(const Vector2D&amp; lhs, const Vector2D&amp; rhs) {\n    return Vector2D(lhs.x + rhs.x, lhs.y + rhs.y);\n}\n\nVector2D operator-(const Vector2D&amp; lhs, const Vector2D&amp; rhs) {\n    return Vector2D(lhs.x - rhs.x, lhs.y - rhs.y);\n}\n\ndouble operator*(const Vector2D&amp; lhs, const Vector2D&amp; rhs) {\n    return lhs.x * rhs.x + lhs.y * rhs.y;\n}\n\nstd::ostream&amp; operator&lt;&lt;(std::ostream&amp; os, const Vector2D&amp; v) {\n    return os &lt;&lt; \"(\" &lt;&lt; v.x &lt;&lt; \", \" &lt;&lt; v.y &lt;&lt; \")\";\n}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-9\">\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u5b9f\u88c5\u6642\u306e\u4f7f\u7528\u65b9\u6cd5<\/h3>\n\n\n\n<p>Iterator \u30d1\u30bf\u30fc\u30f3\u3084Visitor\u30d1\u30bf\u30fc\u30f3\u306a\u3069\u306e\u5b9f\u88c5\u3067\u3001\u30d5\u30ec\u30f3\u30c9\u6a5f\u80fd\u304c\u52b9\u679c\u7684\u306b\u6d3b\u7528\u3067\u304d\u307e\u3059\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ Iterator\u30d1\u30bf\u30fc\u30f3\u306e\u5b9f\u88c5\u4f8b\ntemplate&lt;typename T&gt;\nclass Collection {\nprivate:\n    std::vector&lt;T&gt; elements;\n\n    \/\/ \u30a4\u30c6\u30ec\u30fc\u30bf\u30af\u30e9\u30b9\u3092\u30d5\u30ec\u30f3\u30c9\u3068\u3057\u3066\u5ba3\u8a00\n    friend class Iterator;\n\npublic:\n    class Iterator {\n    private:\n        Collection&lt;T&gt;* collection;\n        size_t current;\n\n    public:\n        Iterator(Collection&lt;T&gt;* coll) : collection(coll), current(0) {}\n\n        bool hasNext() const {\n            return current &lt; collection-&gt;elements.size();\n        }\n\n        T&amp; next() {\n            return collection-&gt;elements[current++];\n        }\n    };\n\n    Iterator getIterator() {\n        return Iterator(this);\n    }\n};<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-10\">\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u3067\u306e\u52b9\u679c\u7684\u306a\u6d3b\u7528\u6cd5<\/h3>\n\n\n\n<p>\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u304b\u3089\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30e1\u30f3\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class ProductionCode {\nprivate:\n    std::string processInternalData(const std::string&amp; data) {\n        \/\/ \u8907\u96d1\u306a\u5185\u90e8\u51e6\u7406\n        return data + \"_processed\";\n    }\n\n    \/\/ \u30c6\u30b9\u30c8\u30af\u30e9\u30b9\u3092\u30d5\u30ec\u30f3\u30c9\u3068\u3057\u3066\u5ba3\u8a00\n    friend class ProductionCodeTest;\n\npublic:\n    std::string publicInterface(const std::string&amp; input) {\n        \/\/ \u516c\u958b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\n        return processInternalData(input);\n    }\n};\n\nclass ProductionCodeTest {\npublic:\n    void testInternalProcessing() {\n        ProductionCode prod;\n        \/\/ \u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30e1\u30bd\u30c3\u30c9\u3092\u76f4\u63a5\u30c6\u30b9\u30c8\u53ef\u80fd\n        assert(prod.processInternalData(\"test\") == \"test_processed\");\n    }\n};<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-11\">STL\u30b3\u30f3\u30c6\u30ca\u306e\u5b9f\u88c5\u306b\u5b66\u3076friend\u306e\u4f7f\u3044\u65b9<\/h3>\n\n\n\n<p>STL\u30b3\u30f3\u30c6\u30ca\u306e\u5b9f\u88c5\u30d1\u30bf\u30fc\u30f3\u3092\u53c2\u8003\u306b\u3057\u305f\u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">template&lt;typename T&gt;\nclass SmartContainer {\nprivate:\n    struct Node {\n        T data;\n        Node* next;\n        Node(const T&amp; d) : data(d), next(nullptr) {}\n    };\n\n    Node* head;\n    size_t count;\n\n    friend class Iterator;  \/\/ \u30a4\u30c6\u30ec\u30fc\u30bf\u30af\u30e9\u30b9\u3092\u30d5\u30ec\u30f3\u30c9\u5316\n    friend class ConstIterator;  \/\/ \u8aad\u307f\u53d6\u308a\u5c02\u7528\u30a4\u30c6\u30ec\u30fc\u30bf\n\npublic:\n    class Iterator {\n    private:\n        Node* current;\n\n    public:\n        Iterator(Node* n) : current(n) {}\n        T&amp; operator*() { return current-&gt;data; }\n        Iterator&amp; operator++() {\n            current = current-&gt;next;\n            return *this;\n        }\n    };\n};<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-12\">\u52b9\u7387\u7684\u306a\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u306e\u305f\u3081\u306e\u53cb\u9054\u6d3b\u7528\u8853<\/h3>\n\n\n\n<p>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30af\u30ea\u30c6\u30a3\u30ab\u30eb\u306a\u72b6\u6cc1\u3067\u306e\u4f7f\u7528\u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class MemoryPool {\nprivate:\n    static constexpr size_t POOL_SIZE = 1024;\n    uint8_t pool[POOL_SIZE];\n    size_t used;\n\n    friend class FastAllocator;  \/\/ \u9ad8\u901f\u30a2\u30ed\u30b1\u30fc\u30bf\u3092\u30d5\u30ec\u30f3\u30c9\u5316\n\npublic:\n    MemoryPool() : used(0) {}\n};\n\nclass FastAllocator {\npublic:\n    void* allocate(MemoryPool&amp; pool, size_t size) {\n        if (pool.used + size &gt; MemoryPool::POOL_SIZE) {\n            throw std::bad_alloc();\n        }\n        void* result = &amp;pool.pool[pool.used];\n        pool.used += size;\n        return result;\n    }\n\n    void deallocate(MemoryPool&amp; pool, void* ptr) {\n        \/\/ \u30d7\u30fc\u30eb\u306e\u30e1\u30e2\u30ea\u7ba1\u7406\u306b\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\n        \/\/ ...\n    }\n};<\/pre>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u306f\u3001\u30d5\u30ec\u30f3\u30c9\u6a5f\u80fd\u304c\u5358\u306a\u308b\u300c\u30ab\u30d7\u30bb\u30eb\u5316\u306e\u7834\u58ca\u300d\u3067\u306f\u306a\u304f\u3001\u52b9\u7387\u7684\u3067\u4fdd\u5b88\u6027\u306e\u9ad8\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u305f\u3081\u306e\u91cd\u8981\u306a\u30c4\u30fc\u30eb\u3068\u306a\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u5404\u30b1\u30fc\u30b9\u3067\u306f\u4ee5\u4e0b\u306e\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5fc5\u8981\u6700\u5c0f\u9650\u306e\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u4ed8\u4e0e\u3059\u308b<\/li>\n\n\n\n<li>\u30d5\u30ec\u30f3\u30c9\u95a2\u4fc2\u306e\u76ee\u7684\u3092\u660e\u78ba\u306b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u5316\u3059\u308b<\/li>\n\n\n\n<li>\u4ee3\u66ff\u624b\u6bb5\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u305d\u3061\u3089\u3092\u691c\u8a0e\u3059\u308b<\/li>\n\n\n\n<li>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u4fdd\u5b88\u6027\u306e\u30d0\u30e9\u30f3\u30b9\u3092\u8003\u616e\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-13\">\u53cb\u4eba\u3092\u4f7f\u7528\u3059\u308b\u969b\u306e\u6ce8\u610f\u70b9\u3068\u4ee3\u66ff\u624b\u6bb5<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-14\">\u30ab\u30d7\u30bb\u30eb\u5316\u3092\u6700\u5927\u9650\u306b\u7834\u58ca\u3057\u306a\u3044\u305f\u3081\u306e\u8a2d\u8a08\u6307\u91dd<\/h3>\n\n\n\n<p>\u30d5\u30ec\u30f3\u30c9\u6a5f\u80fd\u306e\u4f7f\u7528\u306f\u3001\u614e\u91cd\u306b\u691c\u8a0e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u3001\u30ab\u30d7\u30bb\u30eb\u5316\u3092\u7dad\u6301\u3057\u306a\u304c\u3089\u30d5\u30ec\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u4e3b\u8981\u306a\u8a2d\u8a08\u6307\u91dd\u3092\u793a\u3057\u307e\u3059\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u6700\u5c0f\u6a29\u9650\u306e\u539f\u5247\u306e\u9069\u7528<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class SecureSystem {\nprivate:\n    std::string sensitiveData;\n    int accessLevel;\n\n    \/\/ \u60aa\u3044\u4f8b\uff1a\u30af\u30e9\u30b9\u5168\u4f53\u3092\u30d5\u30ec\u30f3\u30c9\u5316\n    friend class SystemManager;  \/\/ \u907f\u3051\u308b\u3079\u304d\n\n    \/\/ \u826f\u3044\u4f8b\uff1a\u5fc5\u8981\u306a\u95a2\u6570\u306e\u307f\u3092\u30d5\u30ec\u30f3\u30c9\u5316\n    friend void SystemManager::auditAccess(const SecureSystem&amp;);\n    friend void SystemManager::checkStatus(const SecureSystem&amp;);\n};<\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u660e\u78ba\u306a\u5206\u96e2<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ \u6539\u5584\u524d\uff1a\u5e83\u7bc4\u306a\u30d5\u30ec\u30f3\u30c9\u30a2\u30af\u30bb\u30b9\nclass DataStore {\nprivate:\n    std::vector&lt;int&gt; data;\n    friend class DataProcessor;  \/\/ \u5168\u3066\u306e\u30e1\u30f3\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\n};\n\n\/\/ \u6539\u5584\u5f8c\uff1a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306b\u3088\u308b\u5206\u96e2\nclass DataStore {\nprivate:\n    std::vector&lt;int&gt; data;\n\npublic:\n    \/\/ \u660e\u78ba\u306a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u63d0\u4f9b\n    class DataView {\n        friend class DataProcessor;  \/\/ \u5236\u9650\u3055\u308c\u305f\u30d3\u30e5\u30fc\u306e\u307f\u306b\u30a2\u30af\u30bb\u30b9\n    private:\n        const std::vector&lt;int&gt;&amp; ref;\n    public:\n        DataView(const std::vector&lt;int&gt;&amp; d) : ref(d) {}\n    };\n\n    DataView getView() const { return DataView(data); }\n};<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-15\">\u53cb\u4eba\u306e\u4f7f\u7528\u304c\u6b63\u3057\u3044\u30b1\u30fc\u30b9\u3068\u907f\u3051\u308b\u3079\u304d\u30b1\u30fc\u30b9<\/h3>\n\n\n\n<p>\u6b63\u3057\u3044\u4f7f\u7528\u30b1\u30fc\u30b9\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u6f14\u7b97\u5b50\u306e\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class Complex {\nprivate:\n    double real, imag;\n\npublic:\n    Complex(double r, double i) : real(r), imag(i) {}\n\n    \/\/ \u6b63\u5f53\u306a\u30d5\u30ec\u30f3\u30c9\u4f7f\u7528\u4f8b\n    friend Complex operator+(const Complex&amp; lhs, const Complex&amp; rhs);\n};<\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>\u5bc6\u7d50\u5408\u304c\u5fc5\u8981\u306a\u5354\u8abf\u30af\u30e9\u30b9<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class Transaction {\nprivate:\n    double amount;\n    std::string id;\n\n    friend class TransactionLogger;  \/\/ \u76e3\u67fb\u76ee\u7684\u3067\u5fc5\u8981\n};<\/pre>\n\n\n\n<p>\u907f\u3051\u308b\u3079\u304d\u30b1\u30fc\u30b9\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u5358\u306a\u308b\u4fbf\u5b9c\u7684\u306a\u30a2\u30af\u30bb\u30b9<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ \u60aa\u3044\u4f8b\nclass Data {\nprivate:\n    int value;\n    friend class Helper;  \/\/ \u5358\u306b\u5024\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3044\u3060\u3051\n};\n\n\/\/ \u826f\u3044\u4f8b\nclass Data {\nprivate:\n    int value;\npublic:\n    int getValue() const { return value; }\n};<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-16\">\u53cb\u4eba\u306e\u4ee3\u308f\u308a\u306b\u691c\u8a0e\u3059\u3079\u304d\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Pimpl\u30a4\u30c7\u30a3\u30aa\u30e0\uff08\u5b9f\u88c5\u306e\u96a0\u853d\uff09<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ \u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\nclass Widget {\nprivate:\n    class Impl;  \/\/ \u524d\u65b9\u5ba3\u8a00\n    std::unique_ptr&lt;Impl&gt; pImpl;\n\npublic:\n    Widget();\n    ~Widget();\n    void doSomething();\n};\n\n\/\/ \u5b9f\u88c5\u30d5\u30a1\u30a4\u30eb\nclass Widget::Impl {\n    \/\/ \u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u306a\u5b9f\u88c5\u8a73\u7d30\n    friend class Widget;  \/\/ \u5236\u5fa1\u3055\u308c\u305f\u5f62\u3067\u306e\u30d5\u30ec\u30f3\u30c9\u4f7f\u7528\n};<\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>\u30d6\u30ea\u30c3\u30b8\u30d1\u30bf\u30fc\u30f3<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class Implementation {\nprotected:\n    virtual void operation() = 0;\n};\n\nclass ConcreteImplementation : public Implementation {\nprotected:\n    void operation() override {\n        \/\/ \u5177\u4f53\u7684\u306a\u5b9f\u88c5\n    }\n};\n\nclass Abstraction {\nprotected:\n    Implementation* impl;\n\npublic:\n    Abstraction(Implementation* i) : impl(i) {}\n    virtual void doOperation() {\n        impl-&gt;operation();\n    }\n};<\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>Facade \u30d1\u30bf\u30fc\u30f3<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class SubsystemA {\nprivate:\n    int complexData;\n\npublic:\n    void operationA() { \/* ... *\/ }\n};\n\nclass SubsystemB {\nprivate:\n    std::string moreData;\n\npublic:\n    void operationB() { \/* ... *\/ }\n};\n\nclass Facade {\nprivate:\n    SubsystemA a;\n    SubsystemB b;\n\npublic:\n    void unifiedOperation() {\n        a.operationA();\n        b.operationB();\n    }\n};<\/pre>\n\n\n\n<p>\u3053\u308c\u3089\u306e\u4ee3\u66ff\u30d1\u30bf\u30fc\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u30e1\u30ea\u30c3\u30c8\u304c\u5f97\u3089\u308c\u307e\u3059\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30ab\u30d7\u30bb\u30eb\u5316\u306e\u7dad\u6301<\/li>\n\n\n\n<li>\u30b3\u30fc\u30c9\u306e\u4fdd\u5b88\u6027\u5411\u4e0a<\/li>\n\n\n\n<li>\u30c6\u30b9\u30c8\u306e\u5bb9\u6613\u3055<\/li>\n\n\n\n<li>\u4f9d\u5b58\u95a2\u4fc2\u306e\u660e\u78ba\u5316<\/li>\n\n\n\n<li>\u518d\u5229\u7528\u6027\u306e\u5411\u4e0a<\/li>\n<\/ol>\n\n\n\n<p>\u30d5\u30ec\u30f3\u30c9\u6a5f\u80fd\u306e\u4f7f\u7528\u3092\u691c\u8a0e\u3059\u308b\u969b\u306f\u3001\u307e\u305a\u3053\u308c\u3089\u306e\u4ee3\u66ff\u30d1\u30bf\u30fc\u30f3\u304c\u9069\u7528\u53ef\u80fd\u304b\u3069\u3046\u304b\u3092\u8a55\u4fa1\u3057\u3001\u30d5\u30ec\u30f3\u30c9\u304c\u672c\u5f53\u306b\u6700\u9069\u306a\u9078\u629e\u3067\u3042\u308b\u5834\u5408\u306b\u306e\u307f\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-17\">\u73fe\u4ee3\u306eC++\u958b\u767a\u306b\u304a\u3051\u308b\u53cb\u4eba\u306e\u3068\u308a\u3042\u3048\u305a<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-18\">C++17\u4ee5\u964d\u3067\u63a8\u5968\u3055\u308c\u308b\u4f7f\u7528\u65b9\u6cd5<\/h3>\n\n\n\n<p>\u30e2\u30c0\u30f3C++\u3067\u306f\u3001\u30d5\u30ec\u30f3\u30c9\u6a5f\u80fd\u306e\u4f7f\u7528\u306b\u95a2\u3057\u3066\u3001\u3088\u308a\u6d17\u7df4\u3055\u308c\u305f\u30a2\u30d7\u30ed\u30fc\u30c1\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u69cb\u9020\u5316\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3068\u306e\u7d44\u307f\u5408\u308f\u305b<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class Point {\nprivate:\n    double x, y;\n\n    \/\/ \u30bf\u30d7\u30eb\u30e9\u30a4\u30af\u306a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u305f\u3081\u306e\u30d5\u30ec\u30f3\u30c9\u5ba3\u8a00\n    template&lt;size_t I&gt;\n    friend auto get(const Point&amp;);\n\npublic:\n    Point(double x, double y) : x(x), y(y) {}\n};\n\n\/\/ \u69cb\u9020\u5316\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u306e\u30b5\u30dd\u30fc\u30c8\ntemplate&lt;&gt; auto get&lt;0&gt;(const Point&amp; p) { return p.x; }\ntemplate&lt;&gt; auto get&lt;1&gt;(const Point&amp; p) { return p.y; }\n\nnamespace std {\n    template&lt;&gt;\n    struct tuple_size&lt;Point&gt; : std::integral_constant&lt;size_t, 2&gt; {};\n\n    template&lt;size_t I&gt;\n    struct tuple_element&lt;I, Point&gt; {\n        using type = double;\n    };\n}\n\n\/\/ \u4f7f\u7528\u4f8b\nvoid modernUsage() {\n    Point p(3.14, 2.718);\n    auto [x, y] = p;  \/\/ \u69cb\u9020\u5316\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\n}<\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>\u30b3\u30f3\u30bb\u30d7\u30c8\u3068\u30d5\u30ec\u30f3\u30c9\u306e\u7d71\u5408<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">template&lt;typename T&gt;\nconcept Printable = requires(T t, std::ostream&amp; os) {\n    { os &lt;&lt; t } -&gt; std::same_as&lt;std::ostream&amp;&gt;;\n};\n\ntemplate&lt;typename T&gt;\nclass SafeWrapper {\nprivate:\n    T value;\n\n    \/\/ \u30b3\u30f3\u30bb\u30d7\u30c8\u3092\u6e80\u305f\u3059\u578b\u306b\u5bfe\u3057\u3066\u306e\u307f\u30d5\u30ec\u30f3\u30c9\u5316\n    template&lt;Printable U&gt;\n    friend std::ostream&amp; operator&lt;&lt;(std::ostream&amp;, const SafeWrapper&lt;U&gt;&amp;);\n\npublic:\n    SafeWrapper(T val) : value(std::move(val)) {}\n};<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-19\">\u4e3b\u8981\u306aC++\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u898b\u308bfriend\u306e\u4f8b<\/h3>\n\n\n\n<p>\u5b9f\u969b\u306e\u5927\u898f\u6a21\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e\u30d5\u30ec\u30f3\u30c9\u4f7f\u7528\u30d1\u30bf\u30fc\u30f3\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Boost \u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a2\u30d7\u30ed\u30fc\u30c1<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">template&lt;typename T&gt;\nclass smart_ptr {\nprivate:\n    T* ptr;\n    std::atomic&lt;int&gt;* ref_count;\n\n    \/\/ \u30b9\u30de\u30fc\u30c8\u30dd\u30a4\u30f3\u30bf\u9593\u306e\u5909\u63db\u3092\u30b5\u30dd\u30fc\u30c8\n    template&lt;typename U&gt;\n    friend class smart_ptr;\n\npublic:\n    template&lt;typename U&gt;\n    smart_ptr(const smart_ptr&lt;U&gt;&amp; other) noexcept\n        : ptr(other.ptr)\n        , ref_count(other.ref_count) {\n        if (ref_count) {\n            ++(*ref_count);\n        }\n    }\n};<\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>Google Test \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u30d1\u30bf\u30fc\u30f3<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class TestCase {\nprivate:\n    std::string test_name_;\n    std::function&lt;void()&gt; test_func_;\n\n    friend class TestRegistry;  \/\/ \u30c6\u30b9\u30c8\u767b\u9332\u30b7\u30b9\u30c6\u30e0\u7528\n    friend class TestRunner;    \/\/ \u30c6\u30b9\u30c8\u5b9f\u884c\u30b7\u30b9\u30c6\u30e0\u7528\n\npublic:\n    \/\/ \u30d1\u30d6\u30ea\u30c3\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\n    void Run();\n    std::string GetName() const;\n};\n\nclass TestRegistry {\npublic:\n    void RegisterTest(const std::string&amp; name, std::function&lt;void()&gt; func) {\n        \/\/ TestCase\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30e1\u30f3\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\n        TestCase test;\n        test.test_name_ = name;\n        test.test_func_ = func;\n        tests_.push_back(test);\n    }\nprivate:\n    std::vector&lt;TestCase&gt; tests_;\n};<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-20\">\u5c06\u6765\u306eC++\u898f\u683c\u306b\u304a\u3051\u308bfriend\u306e\u5c55\u671b<\/h3>\n\n\n\n<p>C++23\u4ee5\u964d\u3067\u691c\u8a0e\u3055\u308c\u308b\u53ef\u80fd\u6027\u306e\u3042\u308b\u6a5f\u80fd\u3068\u4f7f\u7528\u30d1\u30bf\u30fc\u30f3\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30e2\u30b8\u30e5\u30fc\u30eb\u30b7\u30b9\u30c6\u30e0\u3068\u306e\u7d71\u5408<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ \u5c06\u6765\u7684\u306a\u69cb\u6587\uff08\u6982\u5ff5\u7684\u306a\u4f8b\uff09\nmodule math;\n\nexport class Vector {\nprivate:\n    double x, y, z;\n\n    \/\/ \u30e2\u30b8\u30e5\u30fc\u30eb\u30ec\u30d9\u30eb\u3067\u306e\u30d5\u30ec\u30f3\u30c9\u5ba3\u8a00\n    friend module matrix;\n\npublic:\n    \/\/ \u30d1\u30d6\u30ea\u30c3\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\n};<\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>\u3088\u308a\u7d30\u304b\u3044\u7c92\u5ea6\u306e\u30a2\u30af\u30bb\u30b9\u5236\u5fa1<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">class ComplexSystem {\nprivate:\n    int data;\n\n    \/\/ \u7279\u5b9a\u306e\u30e1\u30f3\u30d0\u30fc\u306e\u307f\u306b\u5bfe\u3059\u308b\u30d5\u30ec\u30f3\u30c9\u5ba3\u8a00\uff08\u5c06\u6765\u7684\u306a\u63d0\u6848\uff09\n    friend(data) class DataAnalyzer;\n\n    \/\/ \u8aad\u307f\u53d6\u308a\u5c02\u7528\u30d5\u30ec\u30f3\u30c9\uff08\u5c06\u6765\u7684\u306a\u63d0\u6848\uff09\n    friend_readonly class Monitor;\n};<\/pre>\n\n\n\n<p>\u73fe\u4ee3\u306eC++\u958b\u767a\u306b\u304a\u3051\u308b\u30d5\u30ec\u30f3\u30c9\u306e\u4f7f\u7528\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u539f\u5247\u306b\u5f93\u3046\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u307e\u3059\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u660e\u78ba\u306a\u4f7f\u7528\u76ee\u7684<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u6700\u9069\u5316\u304c\u5fc5\u8981\u306a\u5834\u5408<\/li>\n\n\n\n<li>\u5bc6\u7d50\u5408\u304c\u907f\u3051\u3089\u308c\u306a\u3044\u5354\u8abf\u30af\u30e9\u30b9\u306e\u5b9f\u88c5<\/li>\n\n\n\n<li>\u8a00\u8a9e\u6a5f\u80fd\u3068\u306e\u7d71\u5408\uff08\u6f14\u7b97\u5b50\u30aa\u30fc\u30d0\u30fc\u30ed\u30fc\u30c9\u306a\u3069\uff09<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u30e2\u30c0\u30f3\u306a\u4ee3\u66ff\u624b\u6bb5\u306e\u691c\u8a0e<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30b9\u30de\u30fc\u30c8\u30dd\u30a4\u30f3\u30bf<\/li>\n\n\n\n<li>view\u30af\u30e9\u30b9<\/li>\n\n\n\n<li>\u30ab\u30b9\u30bf\u30e0\u30a4\u30c6\u30ec\u30fc\u30bf<\/li>\n\n\n\n<li>Ranges\uff08C++20\uff09<\/li>\n<\/ul>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u5c06\u6765\u306e\u4fdd\u5b88\u6027\u3078\u306e\u914d\u616e<\/strong><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f9d\u5b58\u95a2\u4fc2\u306e\u660e\u78ba\u306a\u6587\u66f8\u5316<\/li>\n\n\n\n<li>\u30c6\u30b9\u30c8\u5bb9\u6613\u6027\u306e\u78ba\u4fdd<\/li>\n\n\n\n<li>\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u306e\u53ef\u80fd\u6027\u306e\u8003\u616e<\/li>\n<\/ul>\n\n\n\n<p>\u30d5\u30ec\u30f3\u30c9\u6a5f\u80fd\u306f\u3001C++\u306e\u9032\u5316\u3068\u3068\u3082\u306b\u3088\u308a\u6d17\u7df4\u3055\u308c\u305f\u4f7f\u7528\u65b9\u6cd5\u304c\u78ba\u7acb\u3055\u308c\u3064\u3064\u3042\u308a\u307e\u3059\u3002\u30e2\u30c0\u30f3C++\u306e\u6a5f\u80fd\u3092\u6d3b\u7528\u3057\u306a\u304c\u3089\u3001\u9069\u5207\u306a\u5834\u9762\u3067\u52b9\u679c\u7684\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Warning: Undefined array key &#8220;is_admin&#8221; in \/home\/xs392991\/dexall.co.jp\/public_html\/articles\/wp-content\/themes\/ &#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":{"0":"post-1939","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-cpp","7":"nothumb"},"_links":{"self":[{"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/posts\/1939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1939"}],"version-history":[{"count":1,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/posts\/1939\/revisions"}],"predecessor-version":[{"id":1940,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=\/wp\/v2\/posts\/1939\/revisions\/1940"}],"wp:attachment":[{"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dexall.co.jp\/articles\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}