[ptr_container] Disable indirection interface
27 Mar
2012
27 Mar
'12
8:56 a.m.
I have an API that expects iterators to pointers and using it with ptr_container would simplify some code. But the indirection interface of ptr_container prevents this. I can of course add an iterator adapter on top of the ptr_vector but that seems like overkill to me. -- Philipp Moeller GeometryFactory
27 Mar
27 Mar
2:36 p.m.
On 27-03-2012 10:56, Philipp Moeller wrote:
I have an API that expects iterators to pointers and using it with ptr_container would simplify some code. But the indirection interface of ptr_container prevents this.
I can of course add an iterator adapter on top of the ptr_vector but that seems like overkill to me.
Would this help: ptr_vector<T> cont; foo( cont.c_array(), cont.c_array() + cont.size() ); ? HTH -Thorsten
4611
Age (days ago)
4611
Last active (days ago)
1 comments
2 participants
participants (2)
-
Philipp Moeller
-
Thorsten Ottosen