Check out example codes for "end in cpp vector". It will help you in understanding the concepts better.

Code Example 1

Input  : myvector{1, 2, 3, 4, 5};
         myvector.end();
Output : returns an iterator after 5

Input  : myvector{"computer", "science", "portal"};
         myvector.end();
Output : returns an iterator after "portal"

Learn ReactJs, React Native from akashmittal.com