Add convenience method for folly::join
authorAndrew Chalfant <chalfant@fb.com>
Fri, 12 Dec 2014 02:18:26 +0000 (18:18 -0800)
committerJoelMarcey <joelm@fb.com>
Thu, 18 Dec 2014 20:29:40 +0000 (12:29 -0800)
commita33734e4d10197cf085bacf2c3c32ccd9fb0e119
tree164f197e85373903805c4e69eb1920be0ec9e2c9
parent430a2ed17f17aef40438c38c820747989f4e9bbc
Add convenience method for folly::join

Summary: While folly has join methods that return a string (and thus don't need a string referenced passed), it does not support this idiom with iterators. This diff adds support for calls like folly::join("/", itr.begin(), itr.end() - 1).

Test Plan: Unit test

Reviewed By: njormrod@fb.com

Subscribers: philipp, trunkagent, njormrod, folly-diffs@, yfeldblum

FB internal diff: D1702892

Tasks: 5691439

Signature: t1:1702892:1418344206:9c1736f5d8e41be1df71a415e3803fe846b387b7
folly/String.h
folly/test/StringTest.cpp