trying to find an info on what happens if an empty vector used during std::find but didn't had much luck finding any info.
My question is, if an empty vector passed to std::find, is the return value always a nullptr or is it undefined behaviour?
std::vector<int> someDataContainer;
auto it = std::find(someDataContainer.begin(), someDataContainer.end(), 1);
Aucun commentaire:
Enregistrer un commentaire