xentara-utils v2.0.4
The Xentara Utility Library
Loading...
Searching...
No Matches
xentara::utils::tools::IsStringViewable< Type > Struct Template Reference

Determines if a type can be converted to a string view. More...

#include <xentara/utils/tools/TypeTraits.hpp>

Related Symbols

(Note that these are not member symbols.)

template<typename Type >
constexpr bool kIsStringViewable
 Determines if a type can be converted to a string view.
 
template<typename Type >
constexpr bool kIsNothrowStringViewable
 Determines if a type can be converted to a string view without throwing exceptions.
 

Detailed Description

template<typename Type>
struct xentara::utils::tools::IsStringViewable< Type >

Determines if a type can be converted to a string view.

This trait checks whether the type can be converted to exactly one of std::string_view, std::wstring_view, std::u8string_view, std::u16string_view, and std::u32string_view, according to the rules of std::is_convertible.

See also
std::is_convertible, StringViewable, IsNothrowStringViewable

Friends And Related Symbol Documentation

◆ kIsNothrowStringViewable

template<typename Type >
template<typename Type >
constexpr bool kIsNothrowStringViewable
related

Determines if a type can be converted to a string view without throwing exceptions.

This value is true if the type can be converted to exactly one of std::string_view, std::wstring_view, std::u8string_view, std::u16string_view, and std::u32string_view, according to the rules of std::is_convertible, and that conversion is noexcept.

See also
std::is_nothrow_convertible_v

◆ kIsStringViewable

template<typename Type >
template<typename Type >
constexpr bool kIsStringViewable
related

Determines if a type can be converted to a string view.

This value is true if the type can be converted to exactly one of std::string_view, std::wstring_view, std::u8string_view, std::u16string_view, and std::u32string_view, according to the rules of std::is_convertible.

See also
std::is_convertible_v