c++ - Need a map but only need to know if contained? -


i'm wondering if there more appropriate structure needs.

i need have dictionary or strings (words). need know if given word in dictionary.

it seems waste of memory make map of string,string. there better way?

thanks

use std::set<string>. can use std::set::find check whether word exists or not.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -