STL's experience (1) - Why use STL

zhaozj2021-02-12  132

During the last project, I thought of using the MFC's container class, so I'm coming to a Cobarray class. Since my project is used in the server, it is running for a long time, so there is not long time, I found some Memory leakage problem, shit, I quickly checked the code you wrote, and then I found out this class, but I didn't release it, see MSDN, I can't get it, it is not very good to solve the memory release. So I look for another way to replace this CobArray class I think is not very useful. My choice is STL.

Since it is determined to use STL, but STL has a lot, such as VC comes with, stlport, etc., I looked at the vc coming, his quality of his source code did not dare to compliment, so, after choosing Stlport, on the Internet Be a one.

转载请注明原文地址:https://www.9cbs.com/read-7082.html

New Post(0)