Convert static std::set to constexpr array
Convert static std::set to constexpr array

Google C++ Style Guide disallows static variable with non-trivial
destructor. Use constexpr for static variable whenever possible.

std::array would make the code cleaner, but MSVC's implementation
of constexpr std::array is buggy.

Side-benefit: linear search is faster when array is small (<20).

Change-Id: Ic8244dcb868e27d02ceb5298ccec482e7d4254b7
PiperOrigin-RevId: 187451495

katre/bazel,cushon/bazel,twitter-forks/bazel,dslomov/bazel-windows,ButterflyNetwork/bazel,bazelbuild/bazel,davidzchen/bazel,bazelbuild/bazel,cushon/bazel,dslomov/bazel-windows,katre/bazel,dslomov/bazel-windows,ulfjack/bazel,katre/bazel,davidzchen/bazel,bazelbuild/bazel,bazelbuild/bazel,twitter-forks/bazel,dslomov/bazel,dslomov/bazel-windows,twitter-forks/bazel,ulfjack/bazel,cushon/bazel,ulfjack/bazel,katre/bazel,davidzchen/bazel,safarmer/bazel,perezd/bazel,katre/bazel,perezd/bazel,dslomov/bazel,meteorcloudy/bazel,dropbox/bazel,dropbox/bazel,ButterflyNetwork/bazel,ulfjack/bazel,perezd/bazel,dslomov/bazel,ulfjack/bazel,dslomov/bazel-windows,twitter-forks/bazel,cushon/bazel,akira-baruah/bazel,dropbox/bazel,aehlig/bazel,meteorcloudy/bazel,werkt/bazel,akira-baruah/bazel,dslomov/bazel-windows,meteorcloudy/bazel,dropbox/bazel,bazelbuild/bazel,akira-baruah/bazel,ButterflyNetwork/bazel,twitter-forks/bazel,safarmer/bazel,katre/bazel,davidzchen/bazel,davidzchen/bazel,werkt/bazel,safarmer/bazel,dslomov/bazel,ButterflyNetwork/bazel,perezd/bazel,dslomov/bazel,akira-baruah/bazel,dslomov/bazel,cushon/bazel,twitter-forks/bazel,meteorcloudy/bazel,aehlig/bazel,bazelbuild/bazel,ButterflyNetwork/bazel,ulfjack/bazel,perezd/bazel,akira-baruah/bazel,dropbox/bazel,safarmer/bazel,meteorcloudy/bazel,cushon/bazel,werkt/bazel,ulfjack/bazel,akira-baruah/bazel,perezd/bazel,davidzchen/bazel,aehlig/bazel,safarmer/bazel,dslomov/bazel,aehlig/bazel,aehlig/bazel,aehlig/bazel,dropbox/bazel,meteorcloudy/bazel,werkt/bazel,perezd/bazel,meteorcloudy/bazel,twitter-forks/bazel,aehlig/bazel,ButterflyNetwork/bazel,safarmer/bazel,werkt/bazel,werkt/bazel,davidzchen/bazel