From dee0cac1605a5ec48811d3039f41e0e4cdcf7c0c Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Fri, 20 Oct 2023 17:30:20 +0200 Subject: typedef for std streaming to StringBuilder --- src/zencore/include/zencore/string.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/zencore/include/zencore/string.h b/src/zencore/include/zencore/string.h index 2b61b3954..d0bd38acc 100644 --- a/src/zencore/include/zencore/string.h +++ b/src/zencore/include/zencore/string.h @@ -322,6 +322,8 @@ public: inline void EnsureNulTerminated() const { *m_CurPos = '\0'; } + typedef C char_type; // allows this to be used with code targeting some std stream classes + protected: inline void Init(C* Base, size_t Capacity) { -- cgit v1.2.3