热门标签
更多>
搜索结果
查询Tags标签: metaprogramming,共有 2条记录-
C++ metaprogramming Hellow
example 1:1 template<size_t N>2 struct Fac {3 enum {4 value = Fac<N - 1>::value +N,5 };6 };7 8 template<>9 struct Fac<0> { 10 enum { 11 value = 0, 12 }; 13 }; example 2:1 template<size_t N>…
2021/8/15 9:05:49 人评论 次浏览 -
C++ metaprogramming Hellow
example 1:1 template<size_t N>2 struct Fac {3 enum {4 value = Fac<N - 1>::value +N,5 };6 };7 8 template<>9 struct Fac<0> { 10 enum { 11 value = 0, 12 }; 13 }; example 2:1 template<size_t N>…
2021/8/15 9:05:49 人评论 次浏览