stringid: add at method

This commit is contained in:
Danny Robson 2018-09-18 16:36:17 +10:00
parent 5347fbb889
commit c814e0001e

View File

@ -24,6 +24,9 @@ namespace cruft {
/// new ID if the string is not present.
id_t operator[] (std::string_view const&);
// provided for symmetry with std member names
id_t at (std::string_view const &name) const { return find (name); }
///////////////////////////////////////////////////////////////////////
id_t add (std::string);