MCPcopy Create free account
hub / github.com/boostorg/json / testHash

Method testHash

test/string.cpp:2785–2810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2783 }
2784
2785 void
2786 testHash()
2787 {
2788 // libstdc++ 4.8 bug
2789#if !defined(__GNUC__) || (__GNUC__ > 4 || \
2790 (__GNUC__ == 4 && __GNUC_MINOR__ > 8))
2791 {
2792 std::unordered_set<string> us;
2793 us.emplace("first");
2794 us.emplace("second");
2795 }
2796 {
2797 std::unordered_set<string>(
2798 0,
2799 std::hash<string>());
2800 }
2801#endif
2802 {
2803 std::hash<string> h1;
2804 std::hash<string> h2(h1);
2805 std::hash<string> h3;
2806 h1 = h3;
2807 h2 = h3;
2808 (void)h2;
2809 }
2810 }
2811
2812 void
2813 run()

Callers

nothing calls this directly

Calls 1

emplaceMethod · 0.80

Tested by

no test coverage detected