Why use QVector(Qt) instead of std::vector

后端 未结 6 1584
面向向阳花
面向向阳花 2020-12-13 12:31

I\'m very new to C++ and Qt, but I\'m very good at C#/Java.

The point is I like cross-platform, but I\'m confuse with Qt. Isn\'t std::vector already cro

6条回答
  •  醉梦人生
    2020-12-13 12:46

    The bad experience I've had with QTL was related to QTL not raising any exceptions; this makes it harder to trace and fix critical errors. Also, STL implementations are closely related to a compiler, because parts of the library require compiler-specific extensions to the language. This means a STL implementation can often outperform QTL, which needs to be portable and therefore cannot benefit from said extensions. The debugging issue was critical for me though.

提交回复
热议问题