Date: Sun, 13 Apr 2025 21:55:38 +0200
On Sun, Apr 13, 2025 at 9:38 PM Magnus Fromreide via Std-Proposals <
std-proposals_at_[hidden]> wrote:
>
> 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?
>
afaik mp11 was proposed and rejected.
But you can still use it, as it is in Boost.
https://godbolt.org/z/z41nq47s3
std-proposals_at_[hidden]> wrote:
>
> 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?
>
afaik mp11 was proposed and rejected.
But you can still use it, as it is in Boost.
https://godbolt.org/z/z41nq47s3
Received on 2025-04-13 19:55:54