Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
649 B

// MapUtility.h -- Map utilities
// (c) Copyright Schlumberger Technology Corp., unpublished work, created
// 1999. This computer program includes Confidential, Proprietary
// Information and is a Trade Secret of Schlumberger Technology Corp. All
// use, disclosure, and/or reproduction is prohibited unless authorized
// in writing. All Rights Reserved.
#if !defined(SLBCSP_MAPUTILITY_H)
#define SLBCSP_MAPUTILITY_H
template<class In, class Op>
Op
ForEachMappedValue(In First,
In Last,
Op Proc)
{
while (First != Last)
Proc((*First++).second);
return Proc;
}
#endif // SLBCSP_MAPUTILITY_H