stringid: add at method
This commit is contained in:
parent
5347fbb889
commit
c814e0001e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user