Range explicit conversion to any
Summary: [Folly] `Range` explicit conversion to any target type, with overloads enabled only for target types which are explicitly constructible from two iterators. Also changes `Range::to` to do similar, but permits additional arguments to be forwarded as trailing arguments to the target type constructor. For example, this makes `std::string`, `folly::fbstring`, `std::vector<char>`, and all variants with default-constructible custom allocators, to be constructible from (but not convertible from) `folly::StringPiece`. Reviewed By: nbronson Differential Revision: D8386240 fbshipit-source-id: 2426191d1c8ac71cd5832f784e83bbe09b8716e7
Showing
Please register or sign in to comment