Map.h 706 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Map.h
  3. * Copyright © 2012 kbinani
  4. *
  5. * This file is part of vConnect-STAND.
  6. *
  7. * vConnect-STAND is free software; you can redistribute it and/or
  8. * modify it under the terms of the GPL License.
  9. *
  10. * vConnect-STAND is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. */
  14. #ifndef __Map_h__
  15. #define __Map_h__
  16. #ifdef __GNUC__
  17. #include <map>
  18. #else
  19. #include <hash_map>
  20. #endif
  21. namespace vconnect
  22. {
  23. template<typename K, typename V>
  24. class Map
  25. #ifdef __GNUC__
  26. : public std::map<K, V>
  27. #else
  28. : public stdext::hash_map<K, V>
  29. #endif
  30. {
  31. };
  32. }
  33. #endif