zstring: Add class
This is the most efficient wrapper for nul-terminated strings as it does
not care about determining string length. Conversions to / from
ztring_view are provided to make it trivial to upgrade.
Change-Id: Ic83626c53b95b851c3c4a13b1eded8f1e40539f0
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/zstring.cpp b/src/zstring.cpp
new file mode 100644
index 0000000..660b81c
--- /dev/null
+++ b/src/zstring.cpp
@@ -0,0 +1,16 @@
+#include <stdplus/zstring.hpp>
+
+namespace stdplus
+{
+
+#define zstring_instance(char_t) \
+ template class basic_zstring<char_t>; \
+ template class basic_zstring<const char_t>
+zstring_instance(char);
+zstring_instance(char8_t);
+zstring_instance(char16_t);
+zstring_instance(char32_t);
+zstring_instance(wchar_t);
+#undef zstring_instance
+
+} // namespace stdplus