UnboundedQueue: Add support for single consumer try_peek operation.
Summary: Add a try_peek() member function valid only if SingleConsumer==true that returns folly::Optional<const T*> which (if has_value() is true) contains a pointer to the first element in the queue. Reviewed By: djwatson Differential Revision: D7969290 fbshipit-source-id: 3e15138f6c6523adce4da4cd99b74e0a83cd24d7
Showing
Please register or sign in to comment