Date: Sun, 13 Apr 2025 21:38:13 +0200
On Sat, Apr 12, 2025 at 01:07:32PM -0400, Howard Hinnant via Std-Proposals wrote:
> Ancedote:
>
> std::integral recently fell out of favor with me and I wrote my own concept that better suited my needs:
>
> https://github.com/HowardHinnant/bbi/blob/master/bbi.h#L176-L191
When looking at this and also my own recent work I am starting to ask myself
if
template <typename T, typename ... A>
using is_same_as_one_of_v = (std::is_same<T, A> || ...);
would be a useful addition to the standard library?
/MF
> Ancedote:
>
> std::integral recently fell out of favor with me and I wrote my own concept that better suited my needs:
>
> https://github.com/HowardHinnant/bbi/blob/master/bbi.h#L176-L191
When looking at this and also my own recent work I am starting to ask myself
if
template <typename T, typename ... A>
using is_same_as_one_of_v = (std::is_same<T, A> || ...);
would be a useful addition to the standard library?
/MF
Received on 2025-04-13 19:38:20