1 #ifndef C4_YML_WRITER_OSTREAM_HPP_
2 #define C4_YML_WRITER_OSTREAM_HPP_
6 #ifndef C4_YML_ERROR_HPP_
18 template<
class OStream>
26 C4_ALWAYS_INLINE
void append(
const char (&a)[N]) noexcept
28 static_assert(N > 1,
"empty string");
29 m_stream->write(a, N - 1);
36 C4_SUPPRESS_WARNING_GCC_CLANG_WITH_PUSH(
"-Wsign-conversion")
37 m_stream->write(s.str, s.len);
38 C4_SUPPRESS_WARNING_GCC_CLANG_POP
42 C4_ALWAYS_INLINE
void append(
const char c) noexcept
47 C4_ALWAYS_INLINE
void append(
const char c,
size_t num_times) noexcept
49 for(
size_t i = 0; i < num_times; ++i)
A writer that outputs to an STL-like ostream.
void append(const char c, size_t num_times) noexcept
WriterOStream(OStream *s) noexcept
void append(const char(&a)[N]) noexcept
void append(csubstr s) noexcept
Error utilities used by ryml.
void append(const char c) noexcept