---
title: "Discussion on \"C++ Notes\" | Hashnode"
description: "Discussion on \"C++ Notes\". 📌 Find Function\n//For Maps \nmap<int,int>mp;\nmp.insert({2,3});\nmp.insert({1,5});\n\nif(mp.find(2) != mp.end())\n  cout<<mp.find(2)->second;    //Output = 3\nelse\n  cout<<\"Not Found\";\nmp.find(3)->second           //outputs 0, not present.\n\n//Time Complexi..."
url: "https://hashnode.com/posts/c-notes/62a57977165482d2b3eecf21"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [C++ Notes](https://techmadeeasy.hashnode.dev/c-notes?utm_source=hashnode&utm_medium=feed)

📌 Find Function //For Maps map<int,int>mp; mp.insert({2,3}); mp.insert({1,5}); if(mp.find(2) != mp.end()) cout<<mp.find(2)->second; //Output = 3 else cout<<"Not Found"; mp.find(3)->second //outputs 0, not present. //Time Complexi...

Jun 12, 2022 · 7 min read · techmadeeasy.hashnode.dev  
Updated Aug 2, 2022  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#programmer](https://hashnode.com/tag/programmer)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Mann Jain](https://hashnode.com/@MJ16)

@MJ16 · India

  
[View profile](https://hashnode.com/@MJ16)

Engineer and Programmer

An engineer pursuing B.Tech from IIT Gandhinagar and interested in Finance, Logic, Mathematics, machine learning, artificial intelligence, computer networks, data structures and algorithms and programming.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
