provide multi_array::swap
還沒有人認領這個 Issue。
評估
研究方向
首先檢查 multi_array 目前的 resize 方法,以及 issue 中提到的 private 資料成員。將要求的 swap 操作與 issue #24 比較,並判斷預期結果是 public swap 還是 protected 存取;當子類別可以在指派期間進行 resize 而不使用 type-punning 時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
... or at least make its members protected to allow a subclass to do so.
swap would be substantially the same as the current resize method.
Background: I use a subclass of multi_array in order to resize during assignment to get around the most dagnerous multi_array pitfall. This works, but I'd also like to fix another longstanding inefficiency ( #24 ) while I'm at it. Unfortunately the private data members make it impossible to fix in my subclass (barring a type-punning hack).
- 主要語言
- C++
- 星號
- 32
- 分支
- 39
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
boostorg/multi_array 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 70/100
boostorg/multi_array#38 · 2 則留言 · 1 個 reaction ·
-
boostorg/multi_array#35 · 2 則留言 · 已指派 1 人 ·
-
難度 4/5 3-5 天 新手友好度 35/100
boostorg/multi_array#34 ·
-
難度 4/5 3-5 天 新手友好度 35/100
boostorg/multi_array#32 ·
-
難度 3/5 1-2 天 新手友好度 48/100
boostorg/multi_array#31 · 2 則留言 ·
查看 boostorg/multi_array 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 90/100
AXERA-TECH/ax-llm#77 ·
-
難度 1/5 1 小時以內 新手友好度 90/100
games-on-whales/wolf#509 ·
-
難度 2/5 1-3 小時 新手友好度 74/100
-
bug-unconfirmed
難度 2/5 1-3 小時 新手友好度 76/100
-
難度 2/5 1-3 小時 新手友好度 74/100
NVIDIA/cuda-samples#453 ·