Why is `index_gen` in `multi_array` a `boost::detail::multi_array::index_gen<0,0>`

微笑、不失礼 提交于 2019-12-11 14:01:35

问题


This discussion has let to another question. It seems that index_gen in multi_array (a.k.a. boost::multi_array::index_gen) is set to boost::detail::multi_array::index_gen<0,0>, where I would have expected it to be boost::detail::multi_array::index_gen<Dim,Dim> where Dim is the template parameter of multi_array. Can anyone explain why this <0,0> type is used instead?

来源:https://stackoverflow.com/questions/35633531/why-is-index-gen-in-multi-array-a-boostdetailmulti-arrayindex-gen0-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!