A std::map<...> like container that differs in that any 'key' can have subkeys.
typedef path_map< std::string > bag_t; // value is void so like set;
bag_t bag;
bat_t::iterator ptr, end; // end is a null iterator
bag["root"]["subitem"];
bag["root"]["subitem1"];
//...
ptr = bag.find("root");
if (ptr != end)
{
for (ptr = ptr.begin(); ptr != end; ++ptr)
{
std::cout << ptr->key << std::endl;
}
}
| [Home] |
Generated on Tue Aug 5 04:06:11 2003 for path_map by
1.3-rc3
|