Meta-function for detecting types convertible to a string view.
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>>
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>.
| Name | Description |
|---|---|
bsl::is_convertible<t_TYPE, bsl::basic_string_view<t_CHAR_TYPE, t_CHAR_TRAITS>> | Meta-function for detecting implicit convertibility between types. |
| Name | Description |
|---|---|
type | Alias for this integral_constant specialization. |
value_type | Alias for the (template parameter) t_TYPE. |
| Name | Description |
|---|---|
operator() | Return a copy of the template argument t_VALUE. |
operator t_TYPE | Return a copy of the template argument t_VALUE. |
| Name | Description |
|---|---|
value | The compile-time constant value of this metafunction. |
| Name | Description |
|---|---|
IsConvertibleToStringView<t_CHAR_TYPE, t_CHAR_TRAITS, t_CHAR_TYPE const(&)[]> | Partial specialization of IsConvertibleToStringView for unbounded arrays. |