mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 07:36:17 +01:00
GSequence: document that _get_length() is not O(1)
https://bugzilla.gnome.org/show_bug.cgi?id=756988
This commit is contained in:
parent
2331437df3
commit
2bc32606c7
@ -1231,7 +1231,9 @@ g_sequence_set (GSequenceIter *iter,
|
||||
* g_sequence_get_length:
|
||||
* @seq: a #GSequence
|
||||
*
|
||||
* Returns the length of @seq
|
||||
* Returns the length of @seq. Note that this method is O(h) where `h' is the
|
||||
* height of the tree. It is thus more efficient to use g_sequence_is_empty()
|
||||
* when comparing the length to zero.
|
||||
*
|
||||
* Returns: the length of @seq
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user