|
Algorithms_in_C++ 1.0.0
Set of algorithms implemented in C++.
|
Queue_Array class containing the main data and also index of head and tail of the array. More...
Public Member Functions | |
| void | enqueue (const int16_t &) |
| Add element to the first of the queue. More... | |
| int | dequeue () |
| Delete element from back of the queue. More... | |
| void | display () const |
| Show all saved data. More... | |
Private Attributes | |
| int8_t | front {-1} |
| Index of head of the array. | |
| int8_t | rear {-1} |
| Index of tail of the array. | |
| std::array< int16_t, max_size > | arr {} |
| All stored data. | |
Queue_Array class containing the main data and also index of head and tail of the array.
| int data_structures::queue_using_array::Queue_Array::dequeue | ( | ) |
Delete element from back of the queue.
Remove element that is located at the first of the queue.
| void data_structures::queue_using_array::Queue_Array::display | ( | ) | const |
| void data_structures::queue_using_array::Queue_Array::enqueue | ( | const int16_t & | ele | ) |