Macaulay2 Engine
Loading...
Searching...
No Matches

◆ find()

auto IdentifierHash::find ( std::string_view s) const->int
inline

Definition at line 127 of file BasicPoly.hpp.

128 {
129 auto foundloc = mMap.find(s);
130 return (foundloc != mMap.end() ? foundloc->second : -1); // TODO: throw an error if not found?
131 }
std::unordered_map< std::string_view, int > mMap
void size_t s
Definition m2-mem.cpp:271

References mMap, and s.

Referenced by readIdentifier().