pop_tail
Description:
Removes the last element of the queue and returns its data.
Example: Pop tail:
public static int main () {
Queue<string> stack = new Queue<string> ();
stack.push_tail ("1");
stack.push_tail ("2");
stack.push_tail ("3");
// Output: ``3 2 1 ``
string item = null;
while ((item = stack.pop_tail ()) != null) {
print ("%s ", item);
}
print ("\n");
return 0;
}
valac --pkg glib-2.0 GLib.Queue.pop_tail.vala
Parameters:
this |
a Queue |
Returns:
the data of the last element in the queue, or null if the queue is empty |