+1 to Ben Craig's request for a motivational example. A couple of other points to consider:
* Could it be a static member function rather than a const member function? If I understand, this seems like it might be data that you'd want to use to create a container, rather than a question you'd want to ask of an existing container.
* Either way, I imagine that it could and should be a constexpr function.
-------- Original message --------
From: Ben Craig via SG14 <sg14@lists.isocpp.org>
Date: 11/25/21 11:46 AM (GMT-05:00)
To: sg14@lists.isocpp.org
Cc: Ben Craig <ben.craig@ni.com>
Subject: Re: [SG14] sizeof_block_metadata function, colony/hive,
advice wanted
If you can provide a short, motivational chunk of code that shows how it would be used, then that would make it a lot easier to answer the question about whether it's useful or not. I suspect the function may be providing something that is easy for the implementation to provide, but very hard for a user to use.