标签:template
一个很简单的问题类模版
#ifndef _BINARY_SEARCH_TREE_H_ #define _BINARY_SEARCH_TREE_H_ template <typename Comparable> class BinarySearchTree{ public: BinarySearchTree(); BinarySearchTree(const ……
04-13 立刻查看
一个模板优先级的问题
template<class T> void f(T&i) { cout<<1; } template<> void f(const int &i) { cout<<2; } int main(int argc, char *argv[]) { int i = 8; ……
04-02 立刻查看
关于一个奇怪的template的使用疑问
//! \brief Compute the distance to a finite line struct MyPointFiniteLineDistanceFunctor { template <class _LineT, class _PointContainerT, class _Vec3Derived>……
10-09 立刻查看