MyBlog
ariesjzj
全部博文(55)
2011年(2)
2010年(7)
2009年(17)
2008年(29)
songchua
penguin2
jackie_i
nelson_x
cpk1ng
muyuran
szchl200
hweired
倔强的土
分类: C/C++
2008-09-19 01:55:03
template<typename IterT>void workWithIterator(IterT iter){ typename std::iterator_traits<IterT>::value_type temp(*iter); ...}
the C++ way of saying "the type of thing pointed to by objects of type IterT."
Template metaprogramming (TMP) is the process of writing template-based C++ programs that execute during compilation.
上一篇:《Effective C++》Item 45-46
下一篇: 如何在Visual Studio 2005編譯boost 1.34.1
登录 注册