AddStringViewSupport#

Fully qualified name: carb::detail::AddStringViewSupport

Defined in carb/RString.h

template<class Derived>
class AddStringViewSupport#

A helper class for adding string view support to RString classes.

Public Functions

inline operator carb::cpp::string_view() const noexcept#

Converts this registered string to a string view.

Returns:

A carb::cpp::string_view constructed as if by carb::cpp::string_view(c_str(), length()).

Returns:

A carb::cpp::string_view representing the string.

inline operator carb::cpp::zstring_view() const noexcept#

Converts this registered string to a zstring view.

Returns:

A carb::cpp::zstring_view constructed as if by carb::cpp::zstring_view(c_str(), length()).

Returns:

A carb::cpp::zstring_view representing the string.

inline operator std::string_view() const noexcept#

Returns a std::string_view constructed as if by std::string_view(c_str(), length()).

Returns:

A std::string_view representing the string.