4 ms·
void is an empty type in C++. It's less useful than it could be, but it does exist.
by plorkyeran 2y ago
void is an empty type in C++. It's less useful than it could be, but it does exist.
- tialaramex 2y agovoid isn't a type. If you try to use it as a type you'll be told "incomplete type". People who want void to be a type in C++ (proponents of "regular void") mostly want it to be a unit type. If they're really ambitious they want it to have zero size. Generally a few committee meetings will knock that out of them.