added ListMap

ListMap is a map that does not order elements; used in
NameValueCollection to prevent reordering of message headers
This commit is contained in:
aleks-f
2012-11-15 00:16:31 -06:00
parent 37f74f919e
commit a259991568
15 changed files with 600 additions and 60 deletions

View File

@@ -94,13 +94,13 @@ void NameValueCollection::set(const std::string& name, const std::string& value)
if (it != _map.end())
it->second = value;
else
_map.insert(HeaderMap::value_type(name, value));
_map.insert(HeaderMap::ValueType(name, value));
}
void NameValueCollection::add(const std::string& name, const std::string& value)
{
_map.insert(HeaderMap::value_type(name, value));
_map.insert(HeaderMap::ValueType(name, value));
}