首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

请问关于模板的声明有关问题

2012-11-10 
请教关于模板的声明问题void operator() (typename LCC::Dart& d){std::coutVolume ++nb_volume

请教关于模板的声明问题
void operator() (typename LCC::Dart& d) 
  { 
  std::cout<<"Volume "<<++nb_volume<<" : ";
  for (typename LCC::template One_dart_per_incident_cell_range<0,3>::
  const_iterator it=lcc.template one_dart_per_incident_cell<0,3>
  (lcc.dart_handle(d)).begin(),
  itend=lcc.template one_dart_per_incident_cell<0,3>
  (lcc.dart_handle(d)).end();
  it!=itend; ++it)
  {
  std::cout << LCC_3::point(it) << "; ";
  }
  std::cout<<std::endl;
  }
第三行中的template是什么意思?

[解决办法]
。。。就是一个模板函数啊

热点排行