Click here to Skip to main content
15,908,909 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralPlease Explain This Pin
Prakash Nadar28-Dec-03 17:07
Prakash Nadar28-Dec-03 17:07 
GeneralRe: Please Explain This Pin
forjer29-Dec-03 7:46
forjer29-Dec-03 7:46 
GeneralRe: Please Explain This Pin
Prakash Nadar29-Dec-03 16:00
Prakash Nadar29-Dec-03 16:00 
GeneralSTL map. Pin
WREY28-Dec-03 13:57
WREY28-Dec-03 13:57 
GeneralRe: STL map. Pin
Anthony_Yio28-Dec-03 15:05
Anthony_Yio28-Dec-03 15:05 
GeneralRe: STL map. Pin
WREY28-Dec-03 16:12
WREY28-Dec-03 16:12 
GeneralRe: STL map. Pin
Jörgen Sigvardsson29-Dec-03 12:39
Jörgen Sigvardsson29-Dec-03 12:39 
GeneralRe: STL map. Pin
Jörgen Sigvardsson29-Dec-03 11:31
Jörgen Sigvardsson29-Dec-03 11:31 
Write your own remove/filter function?
template <typename Coll, typename Predicate>
void filter(Coll& coll, const Predicate& p) {
    typename Coll::iterator i = coll.begin(), end = coll.end();
    while(i != end) {
        if(p(*i))
            i = coll.erase(i);
        else
            ++i;
    }
}
 
struct MyFilter { 
    bool operator()(const std::pair<Key, Value>& v) const {
        // decide based on v whether it should be filtered out or not
    }
};
 
filter(myColl, MyFilter());


That ought to work?

--
Watcha' gonna do, when Hulkamania runs wild on you!?
GeneralRe: STL map. Pin
WREY1-Jan-04 1:48
WREY1-Jan-04 1:48 
GeneralRe: STL map. Pin
Jörgen Sigvardsson1-Jan-04 5:01
Jörgen Sigvardsson1-Jan-04 5:01 
GeneralRe: STL map. Pin
WREY1-Jan-04 14:09
WREY1-Jan-04 14:09 
Questionstd::istrstream test(NULL) ... what happens??? Pin
Ralph Wetzel26-Dec-03 23:08
Ralph Wetzel26-Dec-03 23:08 
GeneralCom server terminates Pin
Prakash Nadar26-Dec-03 21:30
Prakash Nadar26-Dec-03 21:30 
GeneralPreformance issue Pin
lpRomang26-Dec-03 4:10
lpRomang26-Dec-03 4:10 
GeneralOLE DB templated samples Pin
Sebastián Benítez25-Dec-03 7:30
Sebastián Benítez25-Dec-03 7:30 
GeneralRe: OLE DB templated samples Pin
Igor Vigdorchik25-Dec-03 10:09
Igor Vigdorchik25-Dec-03 10:09 
GeneralRe: OLE DB templated samples Pin
Sebastián Benítez25-Dec-03 10:19
Sebastián Benítez25-Dec-03 10:19 
GeneralRe: OLE DB templated samples Pin
nativespirits29-Dec-03 14:24
nativespirits29-Dec-03 14:24 
GeneralWTL &quot;tendencies&quot; Pin
Shutter23-Dec-03 19:18
Shutter23-Dec-03 19:18 
GeneralRe: WTL &quot;tendencies&quot; Pin
Sebastián Benítez24-Dec-03 1:44
Sebastián Benítez24-Dec-03 1:44 
GeneralRe: WTL &quot;tendencies&quot; Pin
Shutter24-Dec-03 4:13
Shutter24-Dec-03 4:13 
GeneralRe: WTL &quot;tendencies&quot; Pin
Igor Vigdorchik24-Dec-03 8:48
Igor Vigdorchik24-Dec-03 8:48 
GeneralRe: WTL &quot;tendencies&quot; Pin
Jörgen Sigvardsson26-Dec-03 4:20
Jörgen Sigvardsson26-Dec-03 4:20 
GeneralCOM Server created with ATL can't find the new Interface Pin
Nirav Thakkar23-Dec-03 14:54
Nirav Thakkar23-Dec-03 14:54 
GeneralRe: COM Server created with ATL can't find the new Interface Pin
Igor Vigdorchik23-Dec-03 16:34
Igor Vigdorchik23-Dec-03 16:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.