关于STL的一些问题?????
tawe 2001-08-01 12:28:39 有些可能不是STL的:)
using namespace std 是什么意思?
string id(typeid(f).name()) 是什么意思?
有一个定义:
template<class Cont>
struct InsertBack
{
void operator()(Cont& c, long count)
{
for(long i = 0; i < count; i++)
c.push_back(fs);
}
char* testName() { return "InsertBack"; }
};
template<class Op, class Container>
void measureTime(Op f, Container& c, long count)
{
........
}
下面这个调用怎么解释:
typedef vector<FixedSize> VF;
measureTime(InsertBack<VF>(), ,);???????