c++ - implement erase function to my class -
I am trying to implement the delete function in my square list function, but when I write, Returns the error
Error 1 error C2664: 'square_list :: erase': 'std :: _ list_iterator & lt; _Mylist> '' Integer ''
Main code
#define nullptr tap template & lt; Typename T_ & gt; Class square_list {zero erase (it quadratic) {data.erase (this); }}; To remove std :: list iterator, perform the trash function as follows:
Zero Err (typed std :: list & lt; value_type & gt; :: iterator) {data.erase (this); }
Live example:
Comments
Post a Comment