folly::BasicFixedString::cappend

cappend overloads

Synopses

Declared in <folly/FixedString.h>

** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** Creates a new string by appending a character to an existing string, which is left unmodified.

constexpr
BasicFixedString<Char, N + 1U>
cappend(Char ch) const noexcept;
» more...

Creates a new string by appending a string to an existing string, which is left unmodified.

template<std::size_t M>
constexpr
BasicFixedString<Char, N + M>
cappend(BasicFixedString<Char, M> const& that) const noexcept;
» more...

Creates a new string by appending a string literal to a string, which is left unmodified.

template<std::size_t M>
constexpr
BasicFixedString<Char, N + M - 1U>
cappend(Char const(& that)[]) const noexcept;
» more...

Deleted cappend from a string and a position.

template<std::size_t M>
constexpr
BasicFixedString<Char, N + M>
cappend(
    BasicFixedString<Char, M> const& that,
    std::size_t pos) const noexcept(false) = delete;
» more...

Deleted cappend from a string literal and a position.

template<std::size_t M>
constexpr
BasicFixedString<Char, N + M - 1U>
cappend(
    Char const(& that)[],
    std::size_t pos) const noexcept(false) = delete;
» more...

Creates a new string by appending characters from one string to another, which is left unmodified.

template<std::size_t M>
constexpr
BasicFixedString<Char, N + M>
cappend(
    BasicFixedString<Char, M> const& that,
    std::size_t pos,
    std::size_t count) const noexcept(false);
» more...

Creates a new string by appending characters from one string to another, which is left unmodified.

template<std::size_t M>
constexpr
BasicFixedString<Char, N + M - 1U>
cappend(
    Char const(& that)[],
    std::size_t pos,
    std::size_t count) const noexcept(false);
» more...

Return Value

  • A new string with ch appended.
  • A new string with that appended.
  • A new string with the selected characters appended.

Parameters

NameDescription
chThe character to append.
thatThe source string to append.
posThe starting position in the source string.
countThe number of characters to append.