std::ranges::split_view<V,Pattern>::base - cppreference.com (original) (raw)
| | (1) | (since C++20) | | | ---------------------- | ------------- | ------------- | | constexpr V base() &&; | (2) | (since C++20) |
Returns a copy of the underlying view _[base](../split%5Fview.html#base "cpp/ranges/split view")_
.
Copy constructs the result from the underlying view.
Move constructs the result from the underlying view.
[edit] Return value
A copy of the underlying view.
A view move-constructed from the underlying view.
[edit] Example
Output:
base() = "this throw true try typedef typeid" substrings: "this" "throw" "true" "try" "typedef" "typeid"
[edit] Defect reports
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR | Applied to | Behavior as published | Correct behavior |
---|---|---|---|
LWG 3590 | C++20 | the const& overload additionally required validity of copy-assignment | constraints relaxed |
[edit] See also
| | returns a copy of the underlying (adapted) view (public member function of std::ranges::lazy_split_view<V,Pattern>) [edit] | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |