| 182 | const bool deep; ///< if true, do not allow shallow ptr copies |
| 183 | |
| 184 | iterator_impl(typename std::conditional<is_const, const ptr*, ptr*>::type p, |
| 185 | size_t offset, bool d) |
| 186 | : bp(p), |
| 187 | start(p->c_str() + offset), |
| 188 | pos(start), |
| 189 | end_ptr(p->end_c_str()), |
| 190 | deep(d) |
| 191 | {} |
| 192 | |
| 193 | friend class ptr; |
| 194 |