Add vector and string to std class

This commit is contained in:
Alex 2023-03-23 01:36:06 +02:00
parent 33b19c02a4
commit 6762cbfded
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -2,6 +2,8 @@
#define __FENNIX_KERNEL_STD_H__
#include <types.h>
#include <vector.hpp>
#include <string.hpp>
/**
* @brief // stub namespace for std::align_val_t and new operator
@ -13,6 +15,29 @@ namespace std
enum class align_val_t : std::size_t
{
};
template <class T>
class vector : public Vector<T>
{
public:
using Vector<T>::Vector;
using Vector<T>::operator=;
using Vector<T>::operator[];
using typename Vector<T>::iterator;
};
class string : public String
{
public:
using String::String;
using String::operator=;
using String::operator+;
using String::operator<<;
using String::operator[];
using String::operator==;
using String::operator!=;
using typename String::iterator;
};
}
#endif // !__FENNIX_KERNEL_STD_H__