mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
ES.49: added lvalue in std::forward description (#1404)
This commit is contained in:
parent
9f5a67fda7
commit
6a6321fcbf
|
@ -11664,7 +11664,7 @@ The named casts are:
|
|||
* `reinterpret_cast`
|
||||
* `dynamic_cast`
|
||||
* `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` // `narrow<T>(x)` is `static_cast<T>(x)` if `static_cast<T>(x) == x` or it throws `narrowing_error`
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user