Compile-time variadic equality

Nordlöw per.nordlow at gmail.com
Fri Mar 9 19:24:03 UTC 2018


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
}


More information about the Digitalmars-d-learn mailing list