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>.
Declared in <bslstl_isconvertibletostringview.h>
template<
class t_CHAR_TYPE,
class t_CHAR_TRAITS,
class t_TYPE>
struct IsConvertibleToStringView
: bsl::is_convertible<t_TYPE, bsl::basic_string_view<t_CHAR_TYPE, t_CHAR_TRAITS>>
| Name | Description |
|---|---|
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. |
| Name | Description |
|---|---|
type | Alias for this integral_constant specialization. |
value_type |
| Name | Description |
|---|---|
operator() | Return a copy of the template argument t_VALUE. |
operator value_type |
| Name |
|---|
value |
| Name | Description |
|---|---|
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. |