Logo

Programming-Idioms

History of Idiom 51 > diff from v5 to v6

Edit summary for version 6 by :

Version 5

2015-08-01, 17:15:40

Version 6

2015-08-18, 17:41:02

Idiom #51 Check if map contains key

Determine whether map m contains an entry for key k

Idiom #51 Check if map contains key

Determine whether map m contains an entry for key k

Imports
use std::collections::HashMap;
Code
m.contains_key(&k)