[#BloombergLP-bslstl-IsConvertibleToStringView-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::IsConvertibleToStringView :relfileprefix: ../../ :mrdocs: This `struct` template implements a meta‐function to determine if the (template parameter) `t_TYPE` is convertible to `bsl::basic_string_view<t_CHAR_TYPE, t_CHAR_TRAITS>`. == Synopsis Declared in `<bslstl_isconvertibletostringview.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_CHAR_TYPE, class t_CHAR_TRAITS, class t_TYPE> struct IsConvertibleToStringView : xref:bsl/is_convertible.adoc[bsl::is_convertible<t_TYPE, bsl::basic_string_view<t_CHAR_TYPE, t_CHAR_TRAITS>>] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:bsl/is_convertible.adoc[bsl::is_convertible<t_TYPE, bsl::basic_string_view<t_CHAR_TYPE, t_CHAR_TRAITS>>]` | This `struct` template implements the `is_convertible` meta‐function defined in the C++11 standard to determine whether the (template parameter) `t_FROM_TYPE` is implicitly convertible to the (template parameter) `t_TO_TYPE`. |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:bsl/integral_constant-02/type.adoc[`type`] | Alias for this `integral_constant` specialization. | xref:bsl/integral_constant-02/value_type.adoc[`value_type`] | |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:bsl/integral_constant-02/operator_call.adoc[`operator()`] | Return a copy of the template argument `t_VALUE`. | xref:bsl/integral_constant-02/2conversion.adoc[`operator value_type`] | |=== == Static Data Members [cols="1"] |=== | Name | xref:bsl/integral_constant-02/value.adoc[`value`] |=== == Specializations [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/IsConvertibleToStringView-0b.adoc[`IsConvertibleToStringView<t_CHAR_TYPE, t_CHAR_TRAITS, t_CHAR_TYPE const(&)[]>`] | This partial specialization of `IsConvertibleToStringView` is instantiated when `const t_CHAR_TYPE (&)[]` (an unbounded array reference) is tested for convertibility to string view. This handles edge cases with certain compilers where `bsl::is_convertible` may not correctly handle incomplete array types. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#