diff --git a/textstream/textstream.h b/textstream/textstream.h index 523f638..35f02cf 100644 --- a/textstream/textstream.h +++ b/textstream/textstream.h @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2012-2013, Tomasz Sowa + * Copyright (c) 2012-2021, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -60,17 +60,20 @@ namespace PT StringType can be either std::string or std::wstring this class doesn't use UTF-8 in any kind */ -template +template class TextStreamBase { public: TextStreamBase(); + typedef CharT char_type; + typedef MemBuffer buffer_type; typedef typename buffer_type::iterator iterator; typedef typename buffer_type::const_iterator const_iterator; + void clear(); bool empty() const; size_t size() const;