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/../error/error_code/../../iterator/iter_t.html below:

std::iter_value_t, std::iter_reference_t, std::iter_const_reference_t, std::iter_difference_t, std::iter_rvalue_reference_t, std::iter_common_reference_t

template< class T >
using iter_value_t = /* see below */;

(1) (since C++20) template< /*dereferenceable*/ T >
using iter_reference_t = decltype(*std::declval<T&>());
(2) (since C++20) (3) (since C++23)

template< class T >
using iter_difference_t = /* see below */;

(4) (since C++20) (5) (since C++20) (6) (since C++20)

Helper templates

template< class T >
concept /*dereferenceable*/ = /* see below */;

(7) (exposition only*) (8) (exposition only*)

Compute the associated types of an iterator.

2) Computes the reference type of T.

3) Computes the const reference type of T.

5)

Computes the

rvalue reference type

of

T

. The constraint on this alias template is satisfied if and only if the expression

ranges::iter_move(std::declval<T&>())

is valid and has a referenceable type.

6) Computes the common reference type of T. This is the common reference type between its reference type and an lvalue reference to its value type.

8)

The exposition-only alias template

indirect-value-t

denotes the following:

[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 P2609R3 C++20 std::iter_common_reference_t was defined in terms
of std::iter_value_t<T>& which incorrectly handled
std::projected types that project into rvalue reference types defined in terms of
/*indirect-value-t*/<T>
to handle such cases [edit] See also

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