Construction and destruction?
还没有人认领这个 Issue。
评估
调研方向
该 issue 提议增加构造、析构、分配和删除操作,但没有指定源文件或测试。先阅读链接的 Boost Lambda 构造和析构文档,然后检查 lambda2 中现有的操作模式。完成的标准是:为所提议的操作及其聚合形式确定一致的设计,并具备相应的覆盖率。
由索引模型根据 Issue 内容生成。
描述
I propose to do it like in a boost.lambda. Additionally adding aggregate and new_aggregated_ptr:
constructor<T>()(arg_list) T(arg_list)
aggregate<T>()(arg_list) T{arg_list}
destructor()(a) a.~A(), where a is of type A
destructor()(pa) pa->~A(), where pa is of type A*
new_ptr<T>()(arg_list) new T(arg_list)
new_aggregated_ptr<T>()(arg_list) new T{arg_list}
new_array<T>()(sz, val_list) new T[sz]{val_list}
delete_ptr()(p) delete p
delete_array()(p) delete[] p
- 主要语言
- C++
- 星标
- 25
- 派生
- 16
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
boostorg/lambda2 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
ai_reviewed
难度 2/5 1-3 小时 新手友好度 68/100
ydb-platform/ydb#53869 · 3 条评论 ·
-
bug cert blocker needs triage
难度 2/5 1-3 小时 新手友好度 82/100
project-chip/connectedhomeip#74373 ·
-
upstream update
难度 2/5 1-3 小时 新手友好度 75/100
conan-io/conan-center-index#31035 ·
-
Bug
难度 2/5 1-3 小时 新手友好度 68/100
-
documentation
难度 1/5 1 小时以内 新手友好度 85/100
vllm-project/vllm-ascend#17329 ·