You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
I propose to do it like in a boost.lambda. Additionally adding
aggregate
andnew_aggregated_ptr
:https://www.boost.org/doc/libs/1_76_0/doc/html/lambda/le_in_details.html#lambda.construction_and_destruction
The text was updated successfully, but these errors were encountered: