Also, this is a linear search. We could create a std::map to do a binary lookup, if necessary.