BloombergLP::bslstl::IsConvertibleToStringView

Meta-function for detecting types convertible to a string view.

Synopsis

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>>

Description

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>.

Base Classes

NameDescription
bsl::is_convertible<t_TYPE, bsl::basic_string_view<t_CHAR_TYPE, t_CHAR_TRAITS>>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
IsConvertibleToStringView<t_CHAR_TYPE, t_CHAR_TRAITS, t_CHAR_TYPE const(&)[]> Partial specialization of IsConvertibleToStringView for unbounded arrays.