ES.49: added lvalue in std::forward description (#1404)

This commit is contained in:
Aleksander 2019-04-15 20:05:36 +02:00 committed by Sergey Zubkov
parent 9f5a67fda7
commit 6a6321fcbf

View File

@ -11664,7 +11664,7 @@ The named casts are:
* `reinterpret_cast` * `reinterpret_cast`
* `dynamic_cast` * `dynamic_cast`
* `std::move` // `move(x)` is an rvalue reference to `x` * `std::move` // `move(x)` is an rvalue reference to `x`
* `std::forward` // `forward(x)` is an rvalue reference to `x` * `std::forward` // `forward<T>(x)` is an rvalue or an lvalue reference to `x` depending on `T`
* `gsl::narrow_cast` // `narrow_cast<T>(x)` is `static_cast<T>(x)` * `gsl::narrow_cast` // `narrow_cast<T>(x)` is `static_cast<T>(x)`
* `gsl::narrow` // `narrow<T>(x)` is `static_cast<T>(x)` if `static_cast<T>(x) == x` or it throws `narrowing_error` * `gsl::narrow` // `narrow<T>(x)` is `static_cast<T>(x)` if `static_cast<T>(x) == x` or it throws `narrowing_error`