class read_past_end


class read_past_end
    : public std::exception

Description

An exception of this type is thrown by input streams when an attempt is made to read past the end of a stream. For example, if you read from a file through an input stream and read past the file's EOF (end of file) position.

Public Member Functions

read_past_end ()
noexcept

Constructs a read_past_end.

read_past_end (
    const read_past_end& other
)

Copy-constructs a read_past_end from an existing one.

Parameters:
  • other:

    The read_past_end to copy from.

read_past_end&
operator = (
    const read_past_end& other
)

Copy-assigns a read_past_end into this one.

Parameters:
  • other:

    The read_past_end to copy from.

read_past_end (
    read_past_end&& other
)
noexcept

Move-constructs a read_past_end from an existing one.

Parameters:
  • other:

    The read_past_end to move from.

read_past_end&
operator = (
    read_past_end&& other
)
noexcept

Move-assigns a read_past_end into this one.

Parameters:
  • other:

    The read_past_end to move from.

const char*
what ()
const noexcept override

Returns the explanatory string.



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 2023.