class seekable_output_resource


template <
    typename Position
>
class seekable_output_resource
    : public output_resource
    , public seekable_transfer_resource<Position>

Public Aliases

using position_type = Position

The type of this resource's position.

Public Member Functions

explicit
seekable_output_resource (
    std::size_t buffer_capacity = io_buffer::default_buffer_capacity
)

Constructs a seekable output resource with the given buffer capacity.

Parameters:
  • buffer_capacity:

    The capacity of the I/O buffer. If this is zero, the seekable output resource is completely unbuffered.

void
set_position (
    position_type new_position,
    position_reference pr
)
noexcept override

Sets the position of this seekable output resource.

Parameters:
  • new_position:

    The new position of this seekable output resource.

  • pr:

    The reference that the new position is relative to.



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.