-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels