Use this operator on the left side of an assignment statement (an l-value) to retrieve a map element. If there is no map element with the specified key, then a new element is created. There is no "right side" (r-value) equivalent to this operator because there is a possibility that a key may not be found in the map.
VALUE& operator [ ]( BASE_CLASS::BASE_ARG_KEY key );
Header file: | Afxtempl.h |
Platforms: | |
Versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
CTypedPtrMap Overview, CTypedPtrMap Operators, Typed Template Collections, CTypedPtrMap::Lookup