fbstring's front() and back() return by reference
authorAndrei Alexandrescu <aalexandre@fb.com>
Mon, 22 Oct 2012 21:42:05 +0000 (14:42 -0700)
committerJordan DeLong <jdelong@fb.com>
Mon, 29 Oct 2012 23:32:19 +0000 (16:32 -0700)
commit99d9bfdd41e4999b2b5485a01b17a1a759fff559
tree9d1356253a966ad473d5f4446453d06cb677040b
parenta8991a6b6fa1cc08adc57f300376aeccc279cee6
fbstring's front() and back() return by reference

Summary: C++11 added front() and back() that return by reference. fbstring also added front() and back() as non-standard convenience functions, which returned by value. This diff aligns fbstring with the standard.

Test Plan: added and ran unittest

Reviewed By: delong.j@fb.com

FB internal diff: D607574
folly/FBString.h
folly/test/FBStringTest.cpp