added: typedef with char_type to TextStreamBase

This commit is contained in:
Tomasz Sowa 2021-03-15 19:27:03 +01:00
parent df88d4c0fc
commit effe9be0a3
1 changed files with 5 additions and 2 deletions

View File

@ -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<typename char_type, size_t stack_size, size_t heap_block_size>
template<typename CharT, size_t stack_size, size_t heap_block_size>
class TextStreamBase
{
public:
TextStreamBase();
typedef CharT char_type;
typedef MemBuffer<char_type, stack_size, heap_block_size> 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;