A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../string/../ranges/subrange/deduction_guides.html below:

deduction guides for std::ranges::subrange - cppreference.com

(1) (since C++20) (2) (since C++20) (3) (since C++20) (4) (since C++20)

These deduction guides are provided for std::ranges::subrange.

1)

Deduces the template arguments from the type of iterator and sentinel. The

subrange

is sized if

std::sized_sentinel_for<S, I>

is satisfied, as determined by the default template argument.

2) Deduces the template arguments from the type of iterator and sentinel, while the size of range is specified. The subrange is always sized.

3) Deduces the template arguments from the type of range. The subrange is sized if the size can be obtained from the range or its iterator and sentinel.

4) Deduces the template arguments from the type of range, while the size of range is specified. The subrange is always sized.

For the definition of /* make-unsigned-like-t */, see make-unsigned-like-t .

[edit] Notes

While constructing the subrange object,

[edit] Example [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 3404 C++20 meaningless deduction guides from pair-like types were provided removed

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4