This is a tr1 method: the bucket a given key is in, or what bucket it would be put in, if it were to be inserted. Shrug. ------------------------------------------------------------------
| 3112 | // it would be put in, if it were to be inserted. Shrug. |
| 3113 | // ------------------------------------------------------------------ |
| 3114 | size_type bucket(const key_type& key) const |
| 3115 | { |
| 3116 | Position pos = _find_position(key); |
| 3117 | return pos._idx; |
| 3118 | } |
| 3119 | |
| 3120 | // Counts how many elements have key key. For maps, it's either 0 or 1. |
| 3121 | // --------------------------------------------------------------------- |