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

Function main

06.10-orderingComparisonString3/main.cpp:56–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected