Christopher Smith on 19 Aug 2003 03:17:06 -0000 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [ALACPP] picky compiler or bad code? |
On Mon, 2003-08-18 at 19:54, Gavin Doughtie wrote: > takemgr::PathVector is just a std::vector<boost::filesystem::path> > > mFiles is an instance of same. > > is there a preferred syntax for getting an iterator into a vector at an > arbitrary offset besides "&someVector[index]" ? Vectors have random access iterators, so: std::generate(mFiles.begin() + FRAME_COUNT, mFiles.end(), TestFileGenerator(mDir)); should work fine. -- Christopher Smith <x@xxxxxxxx> _______________________________________________ alacpp mailing list alacpp@xxxxxxxxxxx http://lists.ellipsis.cx/mailman/listinfo/alacpp