[SERVER-63462] Import std::bind_front from c++20 stdlib to stdx Created: 08/Feb/22 Updated: 06/Dec/22 Resolved: 14/Feb/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Daniel Morilha (Inactive) | Assignee: | Backlog - Service Architecture |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Service Arch
|
| Participants: |
| Description |
|
`std::bind_front(F&& f, Args&&... args)` generates a forwarding call wrapper for a functor F allowing to bound any number of its first parameters. bind_front makes it easier to manage the lifetime of what a lambda would capture and should be preferred as a replacement |