Commit c2556a0e authored by Wendy Wang's avatar Wendy Wang Committed by Facebook GitHub Bot

Added Comment Explaining subpiece() Member Function In Range.h

Summary: As titled

Reviewed By: ivmaykov

Differential Revision: D31974990

fbshipit-source-id: 03b60c4e9d4a7464c27cd53f1989cda878132933
parent 5f2c1791
......@@ -665,6 +665,9 @@ class Range {
e_ -= n;
}
// Returns a window into the current range, starting at first, and spans
// length characters (or until the end of the current range, whichever comes
// first). Throws if first is past the end of the current range.
Range subpiece(size_type first, size_type length = npos) const {
if (UNLIKELY(first > size())) {
throw_exception<std::out_of_range>("index out of range");
......
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