I want threading with template class parameter, but I don't know how I can use template class as parameter of thread method.
I already tried making method in template class, but I don't want it. People generally do not use this solution.
//....
//Linked List code
//.....
void func1(slist<T> s){
    for (int i = 0; i < 1000; i++) {
        s.push_(i);
    }
}                      // this part is problem of my code.
int main() {
    int i;
    slist<int> s;
    thread t1(func1,s); //Compile error.
        func1(s);   // here, too.
    return 0;
}
i expect the result that threads compete with Linked list.
 
     
     
    