| 485 | return (*this)[index]; |
| 486 | } |
| 487 | void SetVal (unsigned int index, T val) |
| 488 | { |
| 489 | if ((int)index < 0) return; // These always result in an out of memory condition. |
| 490 | |
| 491 | if (index >= this->Size()) |
| 492 | { |
| 493 | this->Resize (index + 1); |
| 494 | } |
| 495 | (*this)[index] = val; |
| 496 | } |
| 497 | }; |
| 498 | |
| 499 | // TMap --------------------------------------------------------------------- |