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

◆ IdentifierHash() [2/2]

IdentifierHash::IdentifierHash ( std::vector< std::string > & idens)
inline

Definition at line 117 of file BasicPoly.hpp.

118 : mAllocatedStrings(idens),
119 mMap()
120 {
121 for (int i=0; i<mAllocatedStrings.size(); ++i)
122 {
123 mMap[std::string_view(mAllocatedStrings[i])] = i;
124 }
125 }
std::vector< std::string > mAllocatedStrings
std::unordered_map< std::string_view, int > mMap

References mAllocatedStrings, and mMap.