Skip to content

Commit afa1687

Browse files
committed
#5 - Create templated base class CppStringT<>
Created. Dev still in progress.
1 parent f7dd584 commit afa1687

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

cpp-strings/cppstrings.h

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,21 @@ class CppStringT : public std::basic_string<CharT>
6464
public:
6565
//--- Wrappers ----------------------------------------
6666
using MyBaseClass = std::basic_string<CharT>;
67-
using size_type = MyBaseClass::size_type;
67+
68+
using traits_type = MyBaseClass::traits_type;
69+
using value_type = MyBaseClass::value_type;
70+
using allocator_type = MyBaseClass::allocator_type;
71+
using size_type = MyBaseClass::size_type;
72+
using difference_type = MyBaseClass::difference_type;
73+
using reference = MyBaseClass::reference;
74+
using const_reference = MyBaseClass::const_reference;
75+
using pointer = MyBaseClass::pointer;
76+
using const_pointer = MyBaseClass::const_pointer;
77+
using iterator = MyBaseClass::iterator;
78+
using const_iterator = MyBaseClass::const_iterator;
79+
using reverse_iterator = MyBaseClass::reverse_iterator;
80+
using const_reverse_iterator = MyBaseClass::const_reverse_iterator;
81+
6882

6983
//--- Constructors ------------------------------------
7084
inline CppStringT() : MyBaseClass() {}
@@ -88,6 +102,10 @@ class CppStringT : public std::basic_string<CharT>
88102
template<class StringViewLike>
89103
CppStringT(const StringViewLike& svl, size_type pos, size_type n) : MyBaseClass(svl, pos, n) {}
90104

105+
106+
//--- Methods -----------------------------------------
107+
108+
91109
protected:
92110

93111

0 commit comments

Comments
 (0)