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

Function main

06.06-orderingComparisonString0/main.cpp:86–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86int main()
87{
88 const char bufa[]{"Hello"};
89 const char bufc[]{"Hello"};
90
91 String a{bufa};
92 String b{"C++20"};
93
94 String c{bufc};
95 String d{"HellO"};
96 String e{"s"};
97
98 CMP_PRINT(a == b, false);
99 CMP_PRINT(a == c, true);
100 CMP_PRINT(a == d, false);
101
102 CMP_PRINT(a > b, true);
103 CMP_PRINT(a < b, false);
104 CMP_PRINT(a > c, false);
105 CMP_PRINT(a > d, true);
106 CMP_PRINT(a > e, false);
107 CMP_PRINT(a < e, true);
108}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected