A RetroSearch Logo

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

Search Query:

Showing content from https://cplusplus.github.io/LWG/issue2729 below:

Issue 2729: Missing SFINAE on std::pair::operator=

tuple& operator=(const tuple& u);

-2- Requires Remarks: This operator shall be defined as deleted unlessis_copy_assignable_v<Ti> is true for all i.

[…]
tuple& operator=(tuple&& u) noexcept(see below);

-5- Remark: The expression inside noexcept is equivalent to the logical AND of the following expressions:

is_nothrow_move_assignable_v<Ti>

where Ti is the ith type in Types.

-6- Requires Remarks: This operator shall be defined as deleted unlessis_move_assignable_v<Ti> is true for all i. […]
template <class... UTypes>
  tuple& operator=(const tuple<UTypes...>& u);

-9- Requires Remarks: This operator shall not participate in overload resolution unlesssizeof...(Types) == sizeof...(UTypes) and is_assignable_v<Ti&, const Ui&> is true for all i.

[…]
template <class... UTypes>
  tuple& operator=(tuple<UTypes...>&& u);

-12- Requires Remarks: This operator shall not participate in overload resolution unlessis_assignable_v<Ti&, Ui&&> == true for all i . andsizeof...(Types) == sizeof...(UTypes).

[…]
template <class U1, class U2> tuple& operator=(const pair<U1, U2>& u);

-15- Requires Remarks: This operator shall not participate in overload resolution unlesssizeof...(Types) == 2 . andis_assignable_v<T0&, const U1&> is true for the first type T0 in Types and is_assignable_v<T1&, const U2&> is true for the second type T1 in Types.

[…]
template <class U1, class U2> tuple& operator=(pair<U1, U2>&& u);

-18- Requires Remarks: This operator shall not participate in overload resolution unlesssizeof...(Types) == 2 . andis_assignable_v<T0&, U1&&> is true for the first type T0 in Types and is_assignable_v<T1&, U2&&> is true for the second type T1 in Types.


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