Can we write a C++ unit test (don't use a tool) to detect if there is no heap allocation for a piece of code?

前端 未结 0 832
谎友^
谎友^ 2021-01-20 19:44

There is a requirement that the heap allocation of a C++ class is not allowed in the constructor, destructor, and its member functions in a mobile application. Is it possibl

相关标签:
回答
  • 消灭零回复
提交回复
热议问题