 deduction guides for st8b7c:f320:99b9:690f:4595:cd17:293a:c069ranges8b7c:f320:99b9:690f:4595:cd17:293a:c069lazy_split_view
    template< class R, class P >
lazy_split_view( R&&, P&& )
    -> lazy_split_view<ranges8b7c:f320:99b9:690f:4595:cd17:293a:c069ll_t<R>, ranges8b7c:f320:99b9:690f:4595:cd17:293a:c069ll_t<P>>;
  (1)   (since C++20)     template< ranges8b7c:f320:99b9:690f:4595:cd17:293a:c069input_range R >
lazy_split_view( R&&, ranges8b7c:f320:99b9:690f:4595:cd17:293a:c069range_value_t<R> )
    -> lazy_split_view<ranges8b7c:f320:99b9:690f:4595:cd17:293a:c069ll_t<R>, ranges8b7c:f320:99b9:690f:4595:cd17:293a:c069single_view<ranges8b7c:f320:99b9:690f:4595:cd17:293a:c069range_value_t<R>>>;
  (2)   (since C++20)    These deduction guides are provided for lazy_split_view to allow deduction from a range and a delimiter.

1) The delimiter is a range of elements. 
2) The delimiter is a single element.  Example  #include <ranges>
#include <string_view>
#include <type_traits>
using st8b7c:f320:99b9:690f:4595:cd17:293a:c069operator""sv;
 
// A temporary patch until P2210R2 is available in the online compiler
#define lazy_split_view split_view
 
int main() {
    st8b7c:f320:99b9:690f:4595:cd17:293a:c069ranges8b7c:f320:99b9:690f:4595:cd17:293a:c069lazy_split_view w1{"8b7c:f320:99b9:690f:4595:cd17:293a:c0698b7c:f320:99b9:690f:4595:cd17:293a:c069c"sv, "8b7c:f320:99b9:690f:4595:cd17:293a:c069"sv};
    // type of w1 is lazy_split_view<string_view, string_view>:
    static_assert(st8b7c:f320:99b9:690f:4595:cd17:293a:c069is_same_v<
        decltype(w1),
        st8b7c:f320:99b9:690f:4595:cd17:293a:c069ranges8b7c:f320:99b9:690f:4595:cd17:293a:c069lazy_split_view<
            st8b7c:f320:99b9:690f:4595:cd17:293a:c069basic_string_view<char, st8b7c:f320:99b9:690f:4595:cd17:293a:c069char_traits<char>>,
            st8b7c:f320:99b9:690f:4595:cd17:293a:c069basic_string_view<char, st8b7c:f320:99b9:690f:4595:cd17:293a:c069char_traits<char>>>>);
 
    st8b7c:f320:99b9:690f:4595:cd17:293a:c069ranges8b7c:f320:99b9:690f:4595:cd17:293a:c069lazy_split_view w2{"x,y,z"sv, ','};
    // type of w2 is lazy_split_view<string_view, single_view<char>>:
    static_assert(st8b7c:f320:99b9:690f:4595:cd17:293a:c069is_same_v<
        decltype(w2),
        st8b7c:f320:99b9:690f:4595:cd17:293a:c069ranges8b7c:f320:99b9:690f:4595:cd17:293a:c069lazy_split_view<
            st8b7c:f320:99b9:690f:4595:cd17:293a:c069basic_string_view<char, st8b7c:f320:99b9:690f:4595:cd17:293a:c069char_traits<char>>,
            st8b7c:f320:99b9:690f:4595:cd17:293a:c069ranges8b7c:f320:99b9:690f:4595:cd17:293a:c069single_view<char>>>);
}  

    
{'path': 'public/docs/cpp/ranges/lazy_split_view/deduction_guides.html', 'source': 'DevDocs.IO'}