PrevUpHomeNext

Function template allowed_line

boost::text::v1::allowed_line

Synopsis

// In header: <boost/text/line_break.hpp>


template<code_point_range R> 
  unspecified allowed_line(R && r, std::ranges::iterator_t< R > it);

Description

Returns the bounds of the smallest chunk of text that could be broken off into a line, searching from it in either direction. Returns a line_break_cp_view; in C++20 and later, if std::ranges::borrowed_range<R> is false, this function returns a std::ranges::dangling instead.

Returns a grapheme range delimiting the bounds of the line (using hard line breaks) that it lies within. Returns a line_break_grapheme_view; in C++20 and later, if std::ranges::borrowed_range<R> is false, this function returns a std::ranges::dangling instead.


PrevUpHomeNext