std.typecons.BitFlags.Negation

Lewis musicaljelly at gmail.com
Sat Oct 17 04:56:11 UTC 2020


Browsing through typecons.d, I see that BitFlags contains an 
inner struct called Negation. But I can't figure out the purpose 
of this Negation struct. It's returned when you call 
opUnary("~"). But why? None of the overloads that take a Negation 
seem to do anything different with it (although obviously I'm 
probably misreading something somewhere).


More information about the Digitalmars-d mailing list