home | help
std::ranges...y_split_view(3)  C++ Standard Libary std::ranges...y_split_view(3)

NAME
     std::ranges::lazy_split_view::lazy_split_view			       -
     std::ranges::lazy_split_view::lazy_split_view

Synopsis
	lazy_split_view()

	  requires std::default_initializable<V>  &&			     (1)
     (since C++20)

		   std::default_initializable<Pattern> = default;
	constexpr  explicit  lazy_split_view( V base, Pattern pattern );     (2)
     (since C++20)
	template< ranges::input_range R >

	  requires std::constructible_from<V, views::all_t<R>> &&
		   std::constructible_from<Pattern, ranges::single_view<
									   (3)
     (since C++20)
	ranges::range_value_t<R>>>

	constexpr explicit lazy_split_view( R&& r,
	ranges::range_value_t<R> e );

	Constructs a lazy_split_view.

	1) Default constructor. Value-initializes the underlying  view	and  the
     delimiter.
	2)  Initializes  the underlying view with std::move(base) and the delim-
     iter with
	std::move(pattern).
	3) Initializes the underlying view  with  views::all(std::forward<R>(r))
     and the
	delimiter with ranges::single_view{std::move(e)}.

Parameters
	base	- the underlying view (to be split)
	pattern - view to be used as the delimiter
	e	- element to be used as the delimiter

Example
	 This section is incomplete
	 Reason: no example

	Defect reports

	The  following	behavior-changing  defect  reports were applied retroac-
     tively to
	previously published C++ standards.

	   DR	  Applied to		 Behavior as published		    Cor-
     rect behavior
	LWG 3714  C++20      the multi-parameter constructor was not	    made
     explicit
	(P2711R1)	     explicit

Category:
	  * Todo no example

http://cppreference.com 	   2024.06.10	   std::ranges...y_split_view(3)

home | help