Add char_traits stub class to <string>

This commit is contained in:
EnderIce2 2024-03-19 02:33:33 +02:00
parent 464022a61d
commit be80b52543
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -700,4 +700,17 @@ namespace std
return iterator(this->Data + this->Length);
}
};
template <class CharT>
class char_traits
{
public:
static size_t length(const CharT *s)
{
size_t len = 0;
while (s[len] != 0)
len++;
return len;
}
};
}