container icon indicating copy to clipboard operation
container copied to clipboard

static_vector::operator== should be constexpr

Open HazardyKnusperkeks opened this issue 2 years ago • 2 comments

We never allocate so everything can easily be done in constexpr, or do I miss something?

HazardyKnusperkeks avatar Feb 28 '22 21:02 HazardyKnusperkeks

actually, i wonder if all of static_vector could potentially be constexpr

timblechmann avatar Oct 20 '23 02:10 timblechmann

actually, i wonder if all of static_vector could potentially be constexpr

It can be! There's a static_vector standards proposal and a reference implementation, all constexpr.

LocalSpook avatar May 23 '24 11:05 LocalSpook