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

◆ findOrInsertTopInternedMonomial()

std::pair< const int *, bool > MonomialCollectionFixedSize::findOrInsertTopInternedMonomial ( int *& monom)
inline

Definition at line 322 of file monomial-sets.hpp.

323 {
324 // if the monomial is found in the set, then monom is popped
325 auto result = mSet.findOrInsert(monom);
326 if (not result.second) // i.e. monomial was not needed.
327 mMonomialMemory.popLastAlloc(monom);
328 return result;
329 }
MonomialSetFixedSize mSet
MonomialMemorySpace mMonomialMemory
VALGRIND_MAKE_MEM_DEFINED & result(result)

References mMonomialMemory, mSet, and result().

Referenced by findOrInsert().