KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can i conduct std::find on a legacy array without making a new std::vector / std::array from an existing legacy array ? for example: int ar[N]; if ( std::find(ar, ar + N, value) != &ar[N] ){ /**/ } Is &ar[N] a valid value for checking the situation when nothing is found? Can I be sure i'm doing right using &ar[N] like an analog of std::vector::end() ?
Tags (comma-separated)
Save Edits
Cancel