C++ Generic Linked List

前端 未结 4 1367
旧巷少年郎
旧巷少年郎 2021-01-29 00:38

For the code below:

#include 
#include 

using namespace std;

class Foo2;
class Foo3;

template 
class Foo1 {
  pub         


        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-29 01:07

    I think the problem is the "?" in LinkedList

    If this is the case, then you should use LinkedList.

    Why can't you use std::list? Maybe we can help you with that, it will be far better that using your own implementation.

提交回复
热议问题