auto it=m.find(fruit);
// it return address after finding…
if(it!=m.end())
// what is the meaning of m.end()
/ / 1. null or not please describe in detail …
auto it=m.find(fruit);
// it return address after finding…
if(it!=m.end())
// what is the meaning of m.end()
/ / 1. null or not please describe in detail …
hello @vishal_sangal_123
mt.end() is not null , it is pointing the address which is next to the last element of map.
so here it!=m.end() we are checking whether it is pointing some valid address or it is point to next address of last