Google C++ style guide's No-exceptions rule; STL?

后端 未结 8 1776
故里飘歌
故里飘歌 2020-12-08 01:56

Google\'s C++ style guide says \"We do not use exceptions\". The style does not mention STL with respect to usage of exception. Since STL allocators can fail, how do they ha

8条回答
  •  清歌不尽
    2020-12-08 02:10

    I'm pretty sure that they mean they do not use exceptions in their code. If you check out their cpplint script, it does check to ensure you are including the correct headers for STL containers (like vector, list, etc).

提交回复
热议问题