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

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -