GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing cpppatterns.com — Remove elements from a container - C++ Patterns
← Patterns
Remove elements from a container
This pattern is licensed under the CC0 Public Domain Dedication.
Requires
c++11
or newer.
IntentUse the erase-remove idiom to remove elements from a container. DescriptionOn line 6, we create a The On lines 8–9, we show how we can pass the resulting iterator to the
container’s This technique of using the generic remove algorithms followed by
a call to the particular container’s Share | ||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |