This struct template implements a meta-function to determine if the (template parameter) t_TYPE is convertible to const t_CHAR_TYPE *.
Declared in <bslstl_isconvertibletocstring.h>
template<
class t_CHAR_TYPE,
class t_TYPE>
struct IsConvertibleToCString
: bsl::is_convertible<t_TYPE, t_CHAR_TYPE const*>
| Name | Description |
|---|---|
bsl::is_convertible<t_TYPE, t_CHAR_TYPE const*> | 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 |
|---|---|
IsConvertibleToCString<t_CHAR_TYPE, t_CHAR_TYPE const(&)[]> | This partial specialization of IsConvertibleToCString is instantiated when const t_CHAR_TYPE (&)[] (an unbounded array reference) is tested for convertibility to const t_CHAR_TYPE *. This handles edge cases with certain compilers where bsl::is_convertible may not correctly handle incomplete array types. |