Compile-time variadic equality
Simen Kjærås
simen.kjaras at gmail.com
Fri Mar 9 22:13:39 UTC 2018
On Friday, 9 March 2018 at 19:24:03 UTC, Nordlöw wrote:
> I'm looking for a function (that probably should be placed in
> std.meta) named something like `areEqual` that checks whether
> all it's arguments are equal or not.
>
> Is there such as function already in Phobos?
>
> My usage is
>
> static if (allEqual!(staticMap!(ElementEncodingType, Rs)))
> {
> // compare Rs byCodeUnit
> }
NoDuplicates!V.length == 1
--
Simen
More information about the Digitalmars-d-learn
mailing list