C++ Logo

std-discussion

Advanced search

Requirement on emptiness of standard library classes

From: F. v.S. <de34_at_[hidden]>
Date: Wed, 23 Apr 2025 11:18:31 +0000
If I understand correctly, among all standard library classes, only allocator_arg_t, default_sentinel_t, nullopt_t, and piecewise_construct_t are required to be empty in the currently standard wording. But perhaps there should be more, and it's also a bit surprising that empty_view specializations are not yet required to be empty.

Is the status quo intended?

Thanks,
F.v.S.


Received on 2025-04-23 11:18:40