std::copy<InputInterator, OutputIterator>( /*...*/ );
How to determine InputInterator and OutputIterator types for an array of doubles double d[]? Is there some kind of iterator_traits<double*>::iterator_type?
upd: i use very old compiler, so i need explicit instantiation
Why you need this?
copyis a function, so, use simplyThis call will automatically deduce the types of arguments.
And also, there is
std::iterator_traits<T*>::pointer, that evaluates fordouble*asdouble*and you can simply usestd::copy<double*, double*>(d, d + size, d);if you want.