Return the concatenation of lhs and rhs.

Synopsis

Declared in <bslstl_string.h>

template<
    class CHAR_TYPE,
    class CHAR_TRAITS,
    class ALLOCATOR>
bsl::basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>
operator+(
    basic_string<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR> const& lhs,
    CHAR_TYPE const* rhs);

Description

Same as the primary operator+ with a C‐string rhs.

Return Value

a string equal to lhs followed by rhs

Parameters

Name

Description

lhs

left‐hand string operand

rhs

right‐hand string operand

Created with MrDocs