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
Post a Comment