class text_io_stream


template <
    typename IOResource
>
class text_io_stream
    : public text_input_stream<IOResource>
    , public text_output_stream<IOResource>

Public Aliases

using wrapped_resource_type = IOResource

The type of the wrapped I/O resource.

Public Member Functions

text_io_stream (
    wrapped_resource_type& resource,
    encoding_form ef,
    std::endian endianness = std::endian::big,
    flush_strategy fs = flush_strategy::manual
)
noexcept

Constructs a text I/O stream from the given I/O resource and with the given encoding form, endianness and flush strategy. The text I/O stream will hold a non-owning reference to the resource, which is expected to stay valid when using the text I/O stream.

Parameters:
  • resource:

    The I/O resource to read from and write to.

  • ef:

    The encoding form that the text is expected to be in.

  • endianness:

    The endianness that the text is expected to be in.

  • fs:

    The flush strategy to use.

wrapped_resource_type*
operator -> ()
const noexcept

Returns a pointer to the wrapped I/O resource, enabling use of the arrow operator.



Copyright © 2022-2025 Daniel T. McGinnis

CCL was first published in 2022, and is still actively maintained.

This website was first published in 2022, and is still actively maintained.

This specific web page was first published in 2022.