C++ class public function that returns a pointer but doesn't allow deleting that pointer?

前端 未结 0 781
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-29 19:49
template
class SmartBuffer {
    int capacity;
    MyArray *data;

public:

    SmartBuffer() {
        capacity = 0;
        data = nullp         


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