BloombergLP::bslstl::IsConvertibleToCString

This struct template implements a meta-function to determine if the (template parameter) t_TYPE is convertible to const t_CHAR_TYPE *.

Synopsis

Declared in <bslstl_isconvertibletocstring.h>

template<
    class t_CHAR_TYPE,
    class t_TYPE>
struct IsConvertibleToCString
    : bsl::is_convertible<t_TYPE, t_CHAR_TYPE const*>

Base Classes

NameDescription
bsl::is_convertible<t_TYPE, t_CHAR_TYPE const*>Meta-function for detecting implicit convertibility between types.

Type Aliases

NameDescription
type Alias for this integral_constant specialization.
value_type Alias for the (template parameter) t_TYPE.

Member Functions

NameDescription
operator() Return a copy of the template argument t_VALUE.
operator t_TYPE Return a copy of the template argument t_VALUE.

Static Data Members

NameDescription
value The compile-time constant value of this metafunction.

Specializations

NameDescription
IsConvertibleToCString<t_CHAR_TYPE, t_CHAR_TYPE const(&)[]> Treat unbounded array references as convertible to const t_CHAR_TYPE *.