c++:vector

1. 基本的vector 操作:

std::vector<Obj_Result> resultvec;
resultvec.resize(0);
resultvec.push_back(result);


.pop_front();
.isempty();

2.pair

 typedef std::pair<Mat, int> Batch;
 std::vector<Batch > batch;
 batch.push_back(std::make_pair(ROI_im,index));

猜你喜欢

转载自blog.csdn.net/weixin_38907330/article/details/83514612
今日推荐