Next: , Previous: , Up: The Integer Set Library   [Index]


13.7.2 Integer Set Search Functions

All functions retrieving data link it if allowed, copy it otherwise.

m_first

integer m_first(mint m, integer &k);

is zero if the m integer set is empty, non zero otherwise. In the latter case k is set to the first value in m.

m_high

integer m_high(mint m);

is the last value in m

m_last

integer m_last(mint m, integer &k);

is zero if the m integer set is empty, non zero otherwise. In the latter case k is set to the last value in m.

m_low

integer m_low(mint m);

is the first value in m

msk_greater

integer msk_greater(mint m, integer a, integer &k);

is zero if the m integer set has no value greater than a, non zero otherwise. In the latter case k is set to the first value greater than a.

msk_less

integer msk_less(mint m, integer a, integer &k);

is zero if the m integer set has no value less than a, non zero otherwise. In the latter case k is set to the last value less than a.

msk_lower

integer msk_lower(mint m, integer a, integer &k);

is zero if the m integer set has no value less or equal to a, non zero otherwise. In the latter case k is set to the last value not greater than a.

msk_upper

integer msk_upper(mint m, integer a, integer &k);

is zero if the m integer set has no value greater or equal to a, non zero otherwise. In the latter case k is set to the first value not less than a.


Next: Integer Set Front Functions, Previous: Integer Set Functions, Up: The Integer Set Library   [Index]