Next: , Previous: , Up: Multisets   [Index]

11.3 Accessing multiset elements

The following function can be used to access the elements of a multiset.

Function: size_t gsl_multiset_get (const gsl_multiset * c, const size_t i)

This function returns the value of the i-th element of the multiset c. If i lies outside the allowed range of 0 to k-1 then the error handler is invoked and 0 is returned. An inline version of this function is used when HAVE_INLINE is defined.