File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
libcxx/test/std/strings/basic.string Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 55
66#include " test_macros.h"
77
8- template <typename Char>
8+ template <typename Char>
99void test_string () {
1010 // Make a test string.
1111 std::basic_string<Char> s;
@@ -26,7 +26,7 @@ void test_string() {
2626 }
2727}
2828
29- template <typename Integer, size_t N>
29+ template <typename Integer, size_t N>
3030struct TestChar {
3131 Integer values[N];
3232
@@ -37,15 +37,11 @@ struct TestChar {
3737 return ch;
3838 }
3939
40- bool operator ==(const TestChar &other) const {
41- return 0 == memcmp (values, other.values , sizeof (values));
42- }
43- bool operator <(const TestChar &other) const {
44- return 0 < memcmp (values, other.values , sizeof (values));
45- }
40+ bool operator ==(const TestChar& other) const { return 0 == memcmp (values, other.values , sizeof (values)); }
41+ bool operator <(const TestChar& other) const { return 0 < memcmp (values, other.values , sizeof (values)); }
4642};
4743
48- template <typename Integer, size_t N>
44+ template <typename Integer, size_t N>
4945struct std ::char_traits<TestChar<Integer, N>> {
5046 using char_type = TestChar<Integer, N>;
5147 using int_type = int ;
You can’t perform that action at this time.
0 commit comments