<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ## shared_array ### 頭文件: `"boost/shared_array.hpp"` `shared_array` 用于共享數組所有權的智能指針。它與`shared_ptr`的關系就如`scoped_array`與`scoped_ptr`的關系。`shared_array` 與 `shared_ptr` 的不同之處主要在于它是用于數組的而不是用于單個對象的。在我們討論 [scoped_array](../Text/content.html#ch01lev1sec5)時,我提到過通常`std::vector`是一個更好的選擇。但 `shared_array` 比 `vector`更有價值,因為它提供了對數組所有權的共享。`shared_array` 的接口與 `shared_ptr`非常相似,差別僅在于增加了一個下標操作符,以及不支持定制刪除器。 由于一個指向`std::vector`的`shared_ptr`提供了比[shared_array](../Text/content.html#ch01lev1sec7)更多的靈活性,所以我們就不對[shared_array](../Text/content.html#ch01lev1sec7)的用法進行討論了。如果你發現自己需要 [`boost::shared_array`](#ch01lev2sec21), 可以參考一下在線文檔。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看