This documentation is archived and is not being maintained.

CHttpMap::Lookup 

Call this method to look up an element in the map with a given key.


CPair* Lookup(
   KINARGTYPE key 
) throw( );
const CPair* Lookup(
   KINARGTYPE key 
) const throw( );
bool Lookup(
   KINARGTYPE key,
   VOUTARGTYPE value 
) const throw( );

Parameters

key

The key of the element to be retrieved.

value

The variable that receives the value.

The first two overloads return a pointer to the requested element, or NULL if the element cannot be found. The final overload returns true if the element is present, false otherwise.

If ATL_HTTP_PARAM_MULTIMAP is defined, Lookup returns the first item with a matching key. (Otherwise the map can hold at most one item with a matching key.)

Show: