folly::operator""_sp

Create a StringPiece from a char string literal.

Synopsis

Declared in <folly/Range.h>

constexpr
Range<char const*>
operator""_sp(
    char const* str,
    size_t len) noexcept;

Return Value

A range referencing the literal.

Parameters

NameDescription
strPointer to the literal's characters.
lenThe number of characters in the literal.