rapidyaml 0.15.2
parse and emit YAML, and do it fast
Loading...
Searching...
No Matches
c4::yml::WriterOStream< OStream > Struct Template Reference

A writer that outputs to an STL-like ostream. More...

#include <writer.hpp>

Public Member Functions

 WriterOStream (OStream &s)
substr _get (bool) const noexcept
template<size_t N>
void _do_write (const char(&a)[N]) noexcept
void _do_write (csubstr s) noexcept
void _do_write (const char c) noexcept
void _do_write (const char c, size_t num_times) noexcept

Public Attributes

OStream * m_stream
size_t m_pos

Detailed Description

template<class OStream>
struct c4::yml::WriterOStream< OStream >

A writer that outputs to an STL-like ostream.

Warning
This writer is much slower than WriterFile, and WriterFile should be preferred to this. The slowness is due to how std::ostream works, and not because of anything in the code of this class.

Definition at line 92 of file writer.hpp.


The documentation for this struct was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/rapidyaml/checkouts/v0.15.2/src/c4/yml/writer.hpp