mimic++ v4
Loading...
Searching...
No Matches
mimicpp::string_traits< T > Struct Template Reference

Specialization for character pointer types. More...

#include <String.hpp>

Inheritance diagram for mimicpp::string_traits< T >:
[legend]
Collaboration diagram for mimicpp::string_traits< T >:
[legend]

Public Types

using char_t = std::remove_const_t<std::remove_pointer_t<T>>
 
using view_t = std::basic_string_view<char_t>
 

Static Public Member Functions

static constexpr view_t view (const std::remove_pointer_t< T > *str) noexcept
 

Detailed Description

template<typename T>
requires std::is_array_v<T>
struct mimicpp::string_traits< T >

Specialization for character pointer types.

Specialization for character array types.

Template Parameters
TType to check.

Member Typedef Documentation

◆ char_t

template<typename T >
using mimicpp::string_traits< T >::char_t = std::remove_const_t<std::remove_pointer_t<T>>

◆ view_t

template<typename T >
using mimicpp::string_traits< T >::view_t = std::basic_string_view<char_t>

Member Function Documentation

◆ view()

template<typename T >
static constexpr view_t mimicpp::string_traits< T >::view ( const std::remove_pointer_t< T > * str)
inlinestaticnodiscardconstexprnoexcept

The documentation for this struct was generated from the following file: