mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-15 19:51:19 +00:00
Added optional INILINE_BUFFER_SIZE template param to BasicMemoryWriter (#716)
This commit is contained in:
parent
bdab94baf8
commit
1d6188404c
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user