Home > Back-end >  Template problem: how to write this problem??
Template problem: how to write this problem??

Time:05-09

 
#include
#include
using namespace std;

Template
Class A
{
List LST.
Unordered_map & lt; The Type, list M1;//OK
//unordered_map & lt; The Key, list : : iterator> M2;//how the ERROR correction???
Unordered_map & lt; The Type, list : : iterator> The m3.//OK

};

Int main () {
return 0;
}

CodePudding user response:

The list template parameters are two, but don't you write when you use specific types at ordinary times, because there is a default, if it is a template parameter, should write out the second, is the alloc
  • Related