vector, 1) .insert(..) 2) .erase(oldpos)
From: Bastian Reich (bastian-reich_at_gmx.de)
Date: 03/31/04
- Next message: jz: "Re: swapping strings in an array"
- Previous message: Frosted Flake: "Re: c[++] pointer question"
- Next in thread: Leor Zolman: "Re: vector, 1) .insert(..) 2) .erase(oldpos)"
- Reply: Leor Zolman: "Re: vector, 1) .insert(..) 2) .erase(oldpos)"
- Reply: Pete Vidler: "Re: vector, 1) .insert(..) 2) .erase(oldpos)"
- Reply: Mike Wahler: "Re: vector, 1) .insert(..) 2) .erase(oldpos)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Mar 2004 18:33:55 +0200
Following problem description:
Given is a vector. Some elements should inserted to a position
at the front and deleted on the old position.
Remark:
What is possible with a list doesn't seem to be possible
with random access iterator usage like vectors.
Example:
list.push_front(*p);
list.erase(p);
-- Basicly all i need is a solution to the problem shown above.
Ty Bastian Reich
bastian-reich@gmx.de
- Next message: jz: "Re: swapping strings in an array"
- Previous message: Frosted Flake: "Re: c[++] pointer question"
- Next in thread: Leor Zolman: "Re: vector, 1) .insert(..) 2) .erase(oldpos)"
- Reply: Leor Zolman: "Re: vector, 1) .insert(..) 2) .erase(oldpos)"
- Reply: Pete Vidler: "Re: vector, 1) .insert(..) 2) .erase(oldpos)"
- Reply: Mike Wahler: "Re: vector, 1) .insert(..) 2) .erase(oldpos)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]