Stack and Queue enumeration order

后端 未结 3 1445
南旧
南旧 2020-12-20 12:03

I know that List enumerator guarantees the enumeration order and respects last sort operation, I know that the Dictionary and HashSet

3条回答
  •  情深已故
    2020-12-20 12:28

    Yes. It doesn't seem to be explicitly documented, but elements are enumerated in the same order as if you popped/dequeued them.

提交回复
热议问题