Logo Search packages:      
Sourcecode: pan version File versions  Download package

bool Numbers::mark_one ( unsigned long  number,
bool  add = true 

Add or remove the specified number from the set. numbers outside the range [range_low...range_high] are ignored.

number the number to add or remove.
add true if we're adding the number, false if removing
the number's previous state in the set.

Definition at line 183 of file numbers.cc.

References mark_range().

   const unsigned long changed_qty (mark_range (number, number, add));

   if (add)
      return changed_qty==0;
   else /* remove */
      return changed_qty!=0;

Generated by  Doxygen 1.6.0   Back to index