共用方式為


CTypedPtrMap::Lookup

Lookup uses a hashing algorithm to quickly find the map element with a key that matches exactly.

BOOL Lookup(
   BASE_CLASS::BASE_ARG_KEY key,
   VALUE& rValue 
) const;

Parameters

  • BASE_CLASS
    Template parameter specifying the base class of this map's class.

  • key
    The key of the element to be looked up.

  • VALUE
    Template parameter specifying the type of values stored in this map.

  • rValue
    Specifies the returned value of the retrieved element.

Return Value

Nonzero if the element was found; otherwise 0.

Remarks

This inline function calls BASE_CLASS**::Lookup**.

Requirements

Header: afxtempl.h

See Also

Reference

CTypedPtrMap Class

Hierarchy Chart

CMapStringToOb::Lookup

Other Resources

CTypedPtrMap Members