MCPcopy Create free account
hub / github.com/0voice/cpp_new_features / main

Function main

cpp_20/018_map_contains.cpp:4–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <set>
3
4int main()
5{
6 std::set<int> example = {1, 2, 3, 4};
7
8 if (example.contains(2)) {
9 std::cout << "Found\n";
10 } else {
11 std::cout << "Not found\n";
12 }
13}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected