//Ne asiguram ca obiectul nu este inclus de mai multe ori.
#ifndef _COPY_TO_COUT_INCLUCED_
#define _COPY_TO_COUT_INCLUCED_

//Daca ne gandim bine, algoritmul de copiere la cout are nevoie doar de
//interatori de tip forward_iterator.
template<class ForwardIterator>
void CopyToCout(ForwardIterator first, ForwardIterator last)
{
    while(first != last)
        cout << *first++;
    cout << endl;
}

#endif
