20 lines
555 B
C++
20 lines
555 B
C++
|
|
#ifndef WRAP_SSTREAM_HPP
|
||
|
|
#define WRAP_SSTREAM_HPP
|
||
|
|
|
||
|
|
#include "two-mallocs.hpp"
|
||
|
|
#include <sstream>
|
||
|
|
|
||
|
|
namespace eng {
|
||
|
|
template<class C, class T=std::char_traits<C>>
|
||
|
|
using basic_ostringstream = std::basic_ostringstream<C, T, EngAllocator<C>>;
|
||
|
|
using ostringstream = std::basic_ostringstream<char>;
|
||
|
|
} // namespace eng
|
||
|
|
|
||
|
|
namespace drv {
|
||
|
|
template<class C, class T=std::char_traits<C>>
|
||
|
|
using basic_ostringstream = std::basic_ostringstream<C, T, std::allocator<C>>;
|
||
|
|
using ostringstream = std::basic_ostringstream<char>;
|
||
|
|
} // namespace drv
|
||
|
|
|
||
|
|
#endif // WRAP_SSTREAM_HPP
|