Commit fc6f6e43 authored by Giuseppe Ottaviano's avatar Giuseppe Ottaviano Committed by Facebook GitHub Bot

IOBufQueue::moveAsValue()

Summary: Added for symmetry with `IOBuf::cloneAsValue()`

Reviewed By: luciang

Differential Revision: D21737695

fbshipit-source-id: 40f5695565ffc7d7c389c9953bffc3ab85508ed1
parent 63977f90
......@@ -464,6 +464,10 @@ class IOBufQueue {
return res;
}
folly::IOBuf moveAsValue() {
return std::move(*move());
}
/**
* Access the front IOBuf.
*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment