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

  1. // MapUtility.h -- Map utilities
  2. // (c) Copyright Schlumberger Technology Corp., unpublished work, created
  3. // 1999. This computer program includes Confidential, Proprietary
  4. // Information and is a Trade Secret of Schlumberger Technology Corp. All
  5. // use, disclosure, and/or reproduction is prohibited unless authorized
  6. // in writing. All Rights Reserved.
  7. #if !defined(SLBCSP_MAPUTILITY_H)
  8. #define SLBCSP_MAPUTILITY_H
  9. template<class In, class Op>
  10. Op
  11. ForEachMappedValue(In First,
  12. In Last,
  13. Op Proc)
  14. {
  15. while (First != Last)
  16. Proc((*First++).second);
  17. return Proc;
  18. }
  19. #endif // SLBCSP_MAPUTILITY_H