-----BEGIN PGP SIGNED MESSAGE-----

On Samstag, 1. März 2003 14:48, Alfredo Braunstein wrote:

Hi Alfredo,

>
> No, my question is if there is a std:: insert adaptor that calls q.push()
> (back_inserter calls push_back(), which doesn't exist on std::queue)

Then what about this

template <class From, class To>
To pushcopy(From beg, From end, To res)
{
    while (beg != end)
        res.push(*beg);
}

and then using as

        pushcopy(s.begin(), s.end(), q);


        Kornel

- -- 
Kornel Benko
[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQCVAwUBPmDERrewfbDGmeqhAQFdKAP/eNKFTPia7yoU1i1RmwNeSUdZHwbGoh2f
5JVyg+54ZqB1+GewaJGPvrkIzZTEmWkD/KWMR4RwjD8cYlLTnYbYXHlVPFZZGMwE
5p1UdnmuCrJ98dus9KP/iPXNYqkn2IvO3TJX6phVi+6robNaQSIuah7ozusBFBAW
ekNelKjfCfo=
=x4Dn
-----END PGP SIGNATURE-----

Reply via email to