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

◆ findOrInsertTopInternedMonomial()

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

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

391 {
392 // if the monomial is found in the set, then monom is popped
393 auto result = mSet.findOrInsert(monom);
394 if (not result.second) // i.e. monomial was not needed.
395 mMonomialMemory.popLastAlloc(monom);
396 return result;
397 }
MonomialMemorySpace mMonomialMemory
VALGRIND_MAKE_MEM_DEFINED & result(result)

References mMonomialMemory, mSet, and result().

Referenced by findOrInsert().