conststr 0.2.1
Loading...
Searching...
No Matches
conststr::can_construct_cstr_t_n_from Concept Reference

This concept is satisfied if cstr can be constructed from T and the value_type of the cstr is CharT and length is Len. More...

#include <conststr.hpp>

Concept definition

template<typename T, typename CharT, std::size_t Len>
std::same_as<typename decltype(cstr(std::declval<T>()))::value_type,
CharT> &&
(decltype(cstr(std::declval<T>()))::size() == Len)
This concept is satisfied if cstr can be constructed from T and the value_type of the cstr is CharT a...
Definition: conststr.hpp:606
cstr(const T(&)[N]) -> cstr< N - 1, T, std::basic_string_view< T > >
Deduction guide for cstr with default view type.

Detailed Description

This concept is satisfied if cstr can be constructed from T and the value_type of the cstr is CharT and length is Len.

Template Parameters
Ttype that can be used to construct cstr
Lenexpected length of cstr
CharTexpected value_type of cstr