#include <map>
using namespace std;
template<class A,class B>
class mymap: public map<A,B>
{
size_type fun(){}
};
int main()
{
return 1;
}
compile error: size_type does not name a type.
Crazy.size_type is a inner type defined in <map>. I inherited the class map, so use it should be ok. why?
Last edited on