29 Input/output library [input.output]

29.9 Span-based streams [span.streams]

29.9.4 Class template basic_­ispanstream [ispanstream]

29.9.4.2 Constructors [ispanstream.ctor]

explicit basic_ispanstream(std::span<charT> s, ios_base::openmode which = ios_base::in);
Effects: Initializes the base class with basic_­istream<charT, traits>(addressof(sb)) and sb with basic_­spanbuf<charT, traits>(s, which | ios_­base​::​in) ([spanbuf.ctor]).
basic_ispanstream(basic_ispanstream&& rhs);
Effects: Initializes the base class with std​::​move(rhs) and sb with std​::​move(rhs.sb).
Next, basic_­istream<charT, traits>​::​set_­rdbuf(addressof(sb)) is called to install the contained basic_­spanbuf.
template<class ROS> explicit basic_ispanstream(ROS&& s)
Constraints: ROS models ranges​::​borrowed_­range.
!convertible_­to<ROS, std​::​span<charT>> && convertible_­to<ROS, std​::​span<charT const>> is true.
Effects: Let sp be std​::​span<const charT>(std​::​forward<ROS>(s)).
Equivalent to basic_ispanstream(std::span<charT>(const_cast<charT*>(sp.data()), sp.size()))