Skip to content

Queue_Contains

Sancky edited this page Sep 26, 2022 · 2 revisions

Description

Check if an value exists in a queue.

Syntax

Queue_Contains(queue, value)

Example

new Queue:queue<10>;

Queue_InsertValue(queue, 1);
Queue_InsertValue(queue, 5);
Queue_InsertValue(queue, 10);
Queue_InsertValue(queue, 15);

printf("Queue have the element 20: %d", Queue_Contains(queue, 20));

Returns

Returns true if value exists, otherwise false.

Clone this wiki locally