boostorg / boostorg/lambda2

Construction and destruction?

オープン
#6 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。