Public Types |
|
typedef cmt_pair |
element_type |
Public Methods |
|
T2&? | operator[] (const T1& key) |
Private Attributes |
|
cmt_vector<element_type>? | elements |
|
? |
|
? |
Definition at line 23 of file tmap.cxx. 00024 { 00025 for (int i = 0; i < elements.size (); i++) 00026 { 00027 element_type& e = elements[i]; 00028 00029 if (e.first == key) 00030 { 00031 return (e.second); 00032 } 00033 } 00034 00035 element_type& e = elements.add (); 00036 00037 e.first = key; 00038 return (e.second); 00039 } |
|
? |