boostorg / boostorg/multi_array

provide multi_array::swap

未关闭
#33 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
32
派生
39
PR 合并指标
30 天内没有已合并 PR

描述

... 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](http://coliru.stacked-crooked.com/a/53484c30d4cbc065). 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).

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。