Convert this object to a string type native to the compiler's library, instantiated with the same character type and traits type, but not necessarily the same allocator type. The return string will contain the same sequence of characters as orig and will have a default‐constructed allocator. Note that this conversion operator can be invoked implicitly (e.g., during argument passing).

Synopsis

Declared in <bslstl_string.h>

template<class ALLOC2>
operator std::basic_string<char16_t, char_traits<char16_t>, ALLOC2>() const;

Created with MrDocs