Use of stl in interview

Can I use stl in interview in all rounds

I think no ,all companies dont allow

You should use STL unless:

  1. The question is asking for the same function/data structure, i.e do not use priority_queue or heap functions of STL, if the question is to implement a heap.
  2. The questioner mentions it specifically.

As always it never hurts to clarify with the interviewer on what you are thinking about.