发新话题
打印

Bjarne:为什么不能为模板参数定义约束?

Bjarne:为什么不能为模板参数定义约束?

  可以的,而且方法非常简单和通用。

  看看这个:

template<class Container>
void draw_all(Container

TOP

发新话题