Add some CursorBase::operator-() implementations
authorPeter Griess <pgriess@fb.com>
Mon, 28 Jan 2013 18:05:16 +0000 (10:05 -0800)
committerJordan DeLong <jdelong@fb.com>
Tue, 19 Mar 2013 00:05:19 +0000 (17:05 -0700)
commit9547cef8ad056d7eb661968ca374165f7d6e353b
tree8b02193db3bfd3ccfd68f4c5b480804fa65d9438
parent2a80dba785170e73c1630998bc8054c8f7b0eb39
Add some CursorBase::operator-() implementations

Summary:
- Add CursorBase::operator-() implementations for Cursor and BufType;
useful for figuring out the distance between two objects

Test Plan: - Used in some other code

Reviewed By: simpkins@fb.com

FB internal diff: D690046
folly/io/Cursor.h
folly/io/test/IOBufCursorTest.cpp