Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

basic_channel::try_peek

Try to peek at the first message in the channel, without blocking.

template<
    typename Handler>
bool try_peek(
    Handler && handler);

Fails if the channel is empty. The peeked-at message is not removed from the channel.

Return Value

true on success, false on failure.


PrevUpHomeNext