Commit 1d618840 authored by Gabi Melman's avatar Gabi Melman Committed by Victor Zverovich

Added optional INILINE_BUFFER_SIZE template param to BasicMemoryWriter (#716)

parent bdab94ba
...@@ -3320,10 +3320,10 @@ void BasicWriter<Char>::write_double(T value, const Spec &spec) { ...@@ -3320,10 +3320,10 @@ void BasicWriter<Char>::write_double(T value, const Spec &spec) {
accessed as a C string with ``out.c_str()``. accessed as a C string with ``out.c_str()``.
\endrst \endrst
*/ */
template <typename Char, typename Allocator = std::allocator<Char> > template <typename Char, typename Allocator = std::allocator<Char>, std::size_t INLINE_BUFFER_SIZE = internal::INLINE_BUFFER_SIZE>
class BasicMemoryWriter : public BasicWriter<Char> { class BasicMemoryWriter : public BasicWriter<Char> {
private: private:
internal::MemoryBuffer<Char, internal::INLINE_BUFFER_SIZE, Allocator> buffer_; internal::MemoryBuffer<Char, INLINE_BUFFER_SIZE, Allocator> buffer_;
public: public:
explicit BasicMemoryWriter(const Allocator& alloc = Allocator()) explicit BasicMemoryWriter(const Allocator& alloc = Allocator())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment