BloombergLP::bslstl::StringRefImp::StringRefImp

Constructors

Synopses

Declared in <bslstl_stringref.h>

Create an empty string reference.

StringRefImp();
» more...

Create a string ref referencing the specified bsl::basic_string.

StringRefImp(bsl::basic_string<CHAR_TYPE> const& str);
» more...

Create a string ref referencing the specified std::pmr::basic_string.

StringRefImp(std::pmr::basic_string<CHAR_TYPE> const& str);
» more...

Create a string ref referencing the specified std::basic_string.

StringRefImp(std::basic_string<CHAR_TYPE> const& str);
» more...

Create a string reference to external character data.

StringRefImp(bsl::basic_string_view<CHAR_TYPE> const& str);
» more...

Create a string reference to a null-terminated C string.

StringRefImp(CHAR_TYPE const* data);
» more...

Create a string reference to an iterator range.

StringRefImp(
    const_iterator begin,
    const_iterator end);
» more...

Create a string reference to external character data.

StringRefImp(
    CHAR_TYPE const* data,
    size_type length);
» more...

Create a string reference to external character data.

template<class INT_TYPE>
StringRefImp(
    CHAR_TYPE const* data,
    INT_TYPE length)
requires bsl::is_integral<INT_TYPE>::value;
» more...

Create a string reference to a substring.

StringRefImp(
    StringRefImp const& original,
    size_type startIndex,
    size_type numCharacters);
» more...

Parameters

NameDescription
strstring whose contents are referenced
datanull-terminated character string to reference
beginthe start of the external representation
endone past the end of the external representation
lengthnumber of characters in the referenced sequence
originalstring reference providing the external data
startIndexstarting index within original
numCharactersmaximum number of characters to reference