mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-06-30 18:09:18 +00:00
Add char_traits stub class to <string>
This commit is contained in:
@ -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;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user