# deduction guides for std::ranges::join_with_view

> C++ Atlas: `cppatlas.com/w/cpp/ranges/join_with_view/deduction_guides` | Source: https://en.cppreference.com/w/cpp/ranges/join_with_view/deduction_guides | Domain: Ranges | Standards: C++23

These deduction guides are provided for join_with_view to allow deduction from a range and a delimiter.

## Official Specification Summary (cppreference)

```cpp
// Defined in header <ranges>

template< class R, class P >
join_with_view( R&&, P&& ) -> join_with_view<views::all_t<R>, views::all_t<P>>; // (1) (since C++23)

template< class R >
join_with_view( R&&, ranges::range_value_t<ranges::range_reference_t<R>> )
    -> join_with_view<views::all_t<R>,
                      ranges::single_view<
                          ranges::range_value_t<ranges::range_reference_t<R>>>; // (2) (since C++23)
```

These deduction guides are provided for `join_with_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

> Note: This section is incomplete Reason: no example

---
Attribution: content from https://en.cppreference.com/w/cpp/ranges/join_with_view/deduction_guides (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.