fork download
  1. #include <unordered_set>
  2.  
  3. struct A{};
  4.  
  5. namespace std {
  6. template<>
  7. struct hash<A> {
  8. size_t operator()(const A& mystruct) const {
  9. return 0; //hash here
  10. }
  11. };
  12. }
  13.  
  14. int main() {
  15. std::unordered_set<A> a;
  16. }
Success #stdin #stdout 0s 3012KB
stdin
Standard input is empty
stdout
Standard output is empty