omni::operator+

Defined in omni/String.h

string omni::operator+(string &&lhs, const char *rhs)

Creates a new string by concatenating lhs and rhs.

Parameters
  • lhs – String the comes first in the new string.

  • rhs – String that comes second in the new string.

Throws
  • std::invalid_argument – if rhs is nullptr.

  • std::length_error – if the resulting string would be being larger than max_size().

  • Allocation – This function may throw any exception thrown during allocation.

Returns

A new string containing the characters from lhs followed by the characters from rhs.