Construction and destruction?
- 主要语言
- C++
- 星标
- 25
- 派生
- 16
- PR 合并指标
- 30 天内没有已合并 PR
描述
I propose to do it like in a boost.lambda. Additionally adding `aggregate` and `new_aggregated_ptr`:
```
constructor()(arg_list) T(arg_list)
aggregate()(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()(arg_list) new T(arg_list)
new_aggregated_ptr()(arg_list) new T{arg_list}
new_array()(sz, val_list) new T[sz]{val_list}
delete_ptr()(p) delete p
delete_array()(p) delete[] p
```
https://www.boost.org/doc/libs/1_76_0/doc/html/lambda/le_in_details.html#lambda.construction_and_destruction
贡献指南
这个仓库没有索引到贡献指南
调研方向
The issue proposes construction, destruction, allocation, and deletion operations but names no source files or tests. Start by reading the linked Boost Lambda construction and destruction documentation, then inspect lambda2's existing operation patterns. Done means the proposed operations and their aggregate forms have an agreed design and corresponding coverage.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp
- 领域
- devtools
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 30/100