add folly::FixedString, a constexpr-usable string with a fixed-size internal buffer
authorEric Niebler <eniebler@fb.com>
Wed, 7 Dec 2016 20:43:21 +0000 (12:43 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Wed, 7 Dec 2016 20:54:04 +0000 (12:54 -0800)
commit77d5e54744c2ab78ffc06e26085bf18725ec73e1
treef0a93d47a1f44fa27aede02832aea4bcfe7e48a9
parent2f6eb18232a6171794142ad8e7fa234b14726d7f
add folly::FixedString, a constexpr-usable string with a fixed-size internal buffer

Summary: Inspired by http://wg21.link/p0259, folly::BasicFixedString is a std::string replacement that is usable in constexpr contexts. It uses an internal fixed-size buffer to store up to N characters, where N is a template parameter.

Reviewed By: luciang

Differential Revision: D4249529

fbshipit-source-id: 10f12ea2510a8d21ec60a07a8f15ecc3e35c5431
folly/FixedString.h [new file with mode: 0644]
folly/Makefile.am
folly/test/FixedStringTest.cpp [new file with mode: 0644]