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

Function main

06.09-orderingComparisonString4/main.cpp:42–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42int main()
43{
44 const char bufa[]{"Hello"};
45 const char bufc[]{"Hello"};
46
47 String a{bufa};
48 String b{"C++20"};
49
50 String c{bufc};
51 String d{"HellO"};
52 String e{"s"};
53
54 CMP_PRINT(a == b, false);
55 CMP_PRINT(a == c, true);
56 CMP_PRINT(a == d, false);
57
58 CMP_PRINT(a > b, true);
59 CMP_PRINT(a < b, false);
60 CMP_PRINT(a > c, false);
61 CMP_PRINT(a > d, true);
62 CMP_PRINT(a > e, false);
63 CMP_PRINT(a < e, true);
64}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected