What are the complexity guarantees of the standard containers?

前端 未结 3 1992
夕颜
夕颜 2020-11-22 11:10

Apparently ;-) the standard containers provide some form of guarantees.

What type of guarantees and what exactly are the differences between the different types of c

3条回答
  •  生来不讨喜
    2020-11-22 11:22

    I'm not aware of anything like a single table that lets you compare all of them in at one glance (I'm not sure such a table would even be feasible).

    Of course the ISO standard document enumerates the complexity requirements in detail, sometimes in various rather readable tables, other times in less readable bullet points for each specific method.

    Also the STL library reference at http://www.cplusplus.com/reference/stl/ provides the complexity requirements where appropriate.

提交回复
热议问题