Date: Fri, 26 Nov 2021 11:46:47 +1300
On 26/11/2021 7:54 am, Ben Saks via SG14 wrote:
> +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.
That's a good point.
> * Either way, I imagine that it could and should be a constexpr function.
>
> Regards,
> Ben Saks
> +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.
That's a good point.
> * Either way, I imagine that it could and should be a constexpr function.
>
> Regards,
> Ben Saks
Received on 2021-11-25 16:46:51