Implementing a managed buffer and “reference”

前端 未结 0 1396
旧时难觅i
旧时难觅i 2021-01-27 11:47

I want to implement a buffer with a managed variant similar to the following:

struct Buffer {
        int size;
        char *ptr;
        void destruct() {
              


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