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

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.

Type Aliases

Name

Description

type

Alias for this integral_constant specialization.

value_type

Alias for the (template parameter) t_TYPE.

Member Functions

Name

Description

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

Name

Description

value

The compile‐time constant value of this metafunction.

Specializations

Name

Description

IsConvertibleToStringView<t_CHAR_TYPE, t_CHAR_TRAITS, t_CHAR_TYPE const(&)[>]

Partial specialization of IsConvertibleToStringView for unbounded arrays.

Created with MrDocs