Addition operators

Synopses

Declared in <bslstl_randomaccessiterator.h>

Return a bsl::string having the value of the concatenation of the strings referred to by the specified lhs and rhs values.

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

Return the concatenation of the specified lhs string ref and the specified rhs bsl::basic_string value.

Return the concatenation of the specified lhs string ref and the specified rhs std::basic_string value.

template<class CHAR_TYPE>
bsl::basic_string<CHAR_TYPE>
operator+(
    StringRefImp<CHAR_TYPE> const& lhs,
    std::basic_string<CHAR_TYPE> const& rhs);

Return the concatenation of the specified string ref and C string.

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

Return the concatenation of the specified lhs string ref and the specified rhs bsl::basic_string value.

Return the concatenation of the specified lhs std::basic_string and the specified rhs string ref.

template<class CHAR_TYPE>
bsl::basic_string<CHAR_TYPE>
operator+(
    std::basic_string<CHAR_TYPE> const& lhs,
    StringRefImp<CHAR_TYPE> const& rhs);

Return the concatenation of the specified C string and string ref.

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

Return an iterator lhs positions past rhs.

template<
    class T,
    class ITER_IMP,
    class TAG_TYPE>
bslstl::RandomAccessIterator<T, ITER_IMP, TAG_TYPE>
operator+(
    std::ptrdiff_t lhs,
    RandomAccessIterator<T, ITER_IMP, TAG_TYPE> const& rhs);

Return an iterator rhs positions past lhs.

template<
    class T,
    class ITER_IMP,
    class TAG_TYPE>
bslstl::RandomAccessIterator<T, ITER_IMP, TAG_TYPE>
operator+(
    RandomAccessIterator<T, ITER_IMP, TAG_TYPE> const& lhs,
    std::ptrdiff_t rhs);

Return Value

  • string equal to the concatenation of the operands

  • iterator lhs positions past rhs

  • iterator rhs positions past lhs

Parameters

Name

Description

lhs

left‐hand string reference operand

rhs

right‐hand string reference operand

Created with MrDocs