Method

GLibSequenceget_length

Declaration

gint
g_sequence_get_length (
  GSequence* seq
)

Description

Returns the positive length (>= 0) of seq. Note that this method is O(h) where h' is the height of the tree. It is thus more efficient to useg_sequence_is_empty()` when comparing the length to zero.

Available since:2.14

Return value

Returns: int
 

The length of seq.