I
I
Impok2014-06-05 18:09:33
C++ / C#
Impok, 2014-06-05 18:09:33

Queue. What is the working principle of the push() method?

There is a structure

struct Process{
  int id;
  int type;
}prcs[SIZEPRCS];

and there is a queue
queue <Process> PR;
when using the method
PR.push(prcs[0]);
I get a new element?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita Markelov, 2014-06-05
@Impok

Typically, push adds an element to a container, and pop removes it.

C
cyberzx, 2014-06-09
@cyberzx

same as, say, push_back on std::vector

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question