folly::Range::str

Convert the range to a std::string. Works only for Range<const char*> and Range<char*>.

Synopsis

Declared in <folly/Range.h>

std::string
str() const;

Return Value

A string with a copy of the range's characters.