c++ template class; function with arbitrary container type, how to define it?

前端 未结 3 612
名媛妹妹
名媛妹妹 2020-12-04 18:25

Okay, simple template question. Say I define my template class something like this:

template
class foo {
public:
    foo(T const& first         


        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-04 19:04

    Make the template templated on a template template parameter:

    template