mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Add vector and string to std class
This commit is contained in:
parent
33b19c02a4
commit
6762cbfded
@ -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__
|
||||
|
Loading…
x
Reference in New Issue
Block a user