// A faster solution return (value & mask) == 0; // Where mask == ~ (None | One | Eight) // This constant can be precomputed at compile-time or run-time (like in Alternate 1)
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)