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

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

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

Detailed Description

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

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

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, and that the conversion is noexcept.

See also
std::is_nothrow_convertible, StringViewable, IsStringViewable