toStdString overloads

Synopses

Declared in <folly/FBString.h>

Converts an fbstring to a std::string.

std::string
toStdString(folly::fbstring const& s);

Returns a std::string unchanged.

std::string const&
toStdString(std::string const& s);

Returns an rvalue std::string unchanged.

std::string&&
toStdString(std::string&& s);

Return Value

  • A std::string copy of s.

  • A reference to s.

  • An rvalue reference to s.

Parameters

Name

Description

s

The fbstring to convert.

Created with MrDocs