Closed Magnutic closed 4 years ago
WIll do-
Hi, put this in but ended up taking it out in v5.26, as it wasn't in keeping with what the std:: containers do - so just use const_cast for your pointer, and using const_iterator for the return type should automatically convert from iterator. Thanks for bringing it to my attention though- if you have any further info let me know.
Have put this back in but may be removed again depending on what the committee says
Thank you for this library! I had used something less-than-ideal for this container's purpose before.
I have a use case for getting an (const_)iterator from a const T*.
get_iterator_from_pointer
works, but I must const_cast the pointer first.If you will allow a const_cast, it should be trivial to implement an overload for this: