Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::char_traits<char>::to_char_type,std::char_traits<wchar_t>::to_char_type,std::char_traits<char8_t>::to_char_type,std::char_traits<char16_t>::to_char_type,std::char_traits<char32_t>::to_char_type

      From cppreference.com
      <cpp‎ |string‎ |char traits
       
       
       
       
      static char_type to_char_type( int_type c);
      (constexpr since C++11)
      (noexcept since C++11)

      Convertsc tochar_type. If there is no equivalentchar_type value (such as whenc is a copy of theeof() value), the result is unspecified.

      SeeCharTraits for the general requirements on character traits forX::to_char_type.

      [edit]Parameters

      c - value to convert

      [edit]Return value

      A value equivalent toc.

      [edit]Complexity

      Constant.

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/string/char_traits/to_char_type&oldid=171374"

      [8]ページ先頭

      ©2009-2025 Movatter.jp