C++ recover if allocation fails in operator=

后端 未结 0 1921
广开言路
广开言路 2020-12-03 23:19

I wrote the following code:

linked_list &operator=(const linked_list &l_list) {
    if (this == &l_list)
        return *this;
    node

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