From 6762cbfdede1ca325d82aea620d18701d7637ac5 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 23 Mar 2023 01:36:06 +0200 Subject: [PATCH] Add vector and string to std class --- include/std.hpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/include/std.hpp b/include/std.hpp index 43c2750..56751f1 100644 --- a/include/std.hpp +++ b/include/std.hpp @@ -2,6 +2,8 @@ #define __FENNIX_KERNEL_STD_H__ #include +#include +#include /** * @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 vector : public Vector + { + public: + using Vector::Vector; + using Vector::operator=; + using Vector::operator[]; + using typename Vector::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__