![](/img/trans.png)
[英]Shouldn't the iterator types of Boost's small_vector satisfy the std::contiguous_iterator concept?
[英]What is the boost equivalent of std::vector<T>::iterator?
什么是升压等效
std::vector<T> v; // Assume this was initialized properly
std::vector<T>::iterator it, e = v.end();
for ( it = v.begin() ; it != e ; ++it ) {
// do something with 'v' via *it
}
我正在使用升压向量
boost::numeric::ublas::vector<T> v;
有人可以使用正确的boost语法匹配上述示例吗?
它是:
typename boost::numeric::ublas::vector<T>::iterator
请参阅文档: http : //www.boost.org/doc/libs/release/libs/numeric/ublas/doc/vector.htm
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.