mirror of
https://github.com/Nekrolm/ubbook.git
synced 2026-06-09 13:14:18 +03:00
Update unreachable_sentinel.md
missing output iterator in transform
This commit is contained in:
@@ -22,7 +22,7 @@ v.erase(
|
||||
std::remove_if(v.begin(), v.end(), [](int x){ return x % 2 != 0; }),
|
||||
v.end()
|
||||
);
|
||||
std::transform(v.begin(), v.end(), [](int x){return x * x;});
|
||||
std::transform(v.begin(), v.end(), v.begin(), [](int x){return x * x;});
|
||||
return v;
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user