pair.h 423 B

12345678910111213141516171819202122232425
  1. /*Dylan Jeffers
  2. *Tahmid Rahman
  3. *founders of RahmROMJeffers ltd.
  4. */
  5. #ifndef PAIR_H_
  6. #define PAIR_H_
  7. /**
  8. * A Pair is an container class for two pieces of data, which it
  9. * stores publicly.
  10. */
  11. template <typename F, typename S>
  12. class Pair {
  13. public:
  14. F first; // The first item in the pair.
  15. S second; // The second item in the pair.
  16. Pair() {};
  17. Pair(F f, S s) {first = f; second = s;};
  18. };
  19. #endif