You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A variant of try_dequeue that returns std::optional #175
It doesn't appear possible to use try_dequeue on a queue of objects that are not default constructible, it would be nice if this could be supported by having a variant that returns optional.
Activity
cameron314 commentedon Sep 12, 2026
Something similar can already be achieved by moving from the result of
peek(), followed bypop().