| 2995 | enum pos_type { pt_empty = 0, pt_erased, pt_full }; |
| 2996 | // ------------------------------------------------------------------- |
| 2997 | class Position |
| 2998 | { |
| 2999 | public: |
| 3000 | |
| 3001 | Position() : _t(pt_empty) {} |
| 3002 | Position(pos_type t, size_type idx) : _t(t), _idx(idx) {} |
| 3003 | |
| 3004 | pos_type _t; |
| 3005 | size_type _idx; |
| 3006 | }; |
| 3007 | |
| 3008 | // Returns a pair: |
| 3009 | // - 'first' is a code, 2 if key already present, 0 or 1 otherwise. |