boostorg / boostorg/lambda2

Construction and destruction?

Aperta
#6 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C++
Stelle
25
Fork
16
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.