end vs cend in cpp
#include <iostream>
#include <iterator>
int main() {
int arr[] = {1, 2, 3, 4, 5};
// Using 'end' to get the iterator pointing to the end of the array
auto iterEnd = std::end(arr);
// Using 'cend' to get a constant iterator pointing to the end of the array
auto iterCEnd = std::cend(arr);
return 0;
}