I would like to check that the input iterators first and last refer to the same container. I know that the STL containers carry out such a check, since if one tries to use insert when this condition fails, one gets an error, e.g., "string iterators incompatible". How is this check implemented for STL containers?
void insert (iterator position, InputIterator first, InputIterator last);
|Regarding C++ Compilers - Which is best and most economical for Optimization of code???||6||62|
|VS2015 compilation and missing DLLs||9||119|
|Exception thrown at 0x00007FFD5BC81F28||7||38|
|How can i compile this github project??||2||76|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
18 Experts available now in Live!