MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / main

Function main

06.08-orderingComparisonString2/main.cpp:58–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58int main()
59{
60 const char bufa[]{"Hello"};
61 const char bufc[]{"Hello"};
62
63 String a{bufa};
64 String b{"C++20"};
65
66 String c{bufc};
67 String d{"HellO"};
68 String e{"s"};
69
70 CMP_PRINT(a == b, false);
71 CMP_PRINT(a == c, true);
72 CMP_PRINT(a == d, false);
73
74 CMP_PRINT(a > b, true);
75 CMP_PRINT(a < b, false);
76 CMP_PRINT(a > c, false);
77 CMP_PRINT(a > d, true);
78 CMP_PRINT(a > e, false);
79 CMP_PRINT(a < e, true);
80}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected