Re: [boost] Interest in an ODBC library?

----- Mensaje original ----- De: Joaquin M Lopez Munoz <joaquin@tid.es> Fecha: Viernes, Julio 29, 2005 5:28 pm Asunto: Re: [boost] Interest in an ODBC library?
template<typename Element> void reverse_dump(IBidirectionalContainer<Element> i) { std::copy( i.rbegin(),i.rend(), std::ostream_iterator<Element>(std::cout)); }
Thinking about it some more, we could really use the version of reverse_dump in the static case also for the dynamic situation: template<typename Index> void reverse_dump(const Index& i) { std::copy( i.rbegin(),i.rend(), std::ostream_iterator<typename Index::value_type>(std::cout)); } In the dynamic case, reverse_dump would be then instantiated as reverse_dump<IBidirectionalContainer<Element> >. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
participants (1)
-
JOAQUIN LOPEZ MU?Z