22 lines
697 B
C++
22 lines
697 B
C++
#ifndef WRAP_SSTREAM_HPP
|
|
#define WRAP_SSTREAM_HPP
|
|
|
|
#include "eng-malloc.hpp"
|
|
#include "wrap-string.hpp"
|
|
#include <sstream>
|
|
#include <string_view>
|
|
|
|
namespace eng {
|
|
template<class C, class T=std::char_traits<C>>
|
|
class basic_ostringstream : public std::basic_ostringstream<C, T, eng::allocator<C>>, public eng::opnew {
|
|
using underlying = std::basic_ostringstream<C, T, eng::allocator<C>>;
|
|
using underlying::basic_ostringstream;
|
|
};
|
|
//template<class C, class T=std::char_traits<C>>
|
|
//using basic_stringbuf = std::basic_stringbuf<C, T, eng::allocator<C>>;
|
|
using ostringstream = basic_ostringstream<char>;
|
|
//using stringbuf = basic_stringbuf<char>;
|
|
} // namespace eng
|
|
|
|
#endif // WRAP_SSTREAM_HPP
|