Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef GENERS_IOISPAIR_HH_
#define GENERS_IOISPAIR_HH_

#include <utility>

namespace gs {
  template <class T>
  struct IOIsPair {
    enum { value = 0 };
  };

  template <class T1, class T2>
  struct IOIsPair<std::pair<T1, T2>> {
    enum { value = 1 };
  };
}  // namespace gs

#endif  // GENERS_IOISPAIR_HH_