[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/header/charconv [Back]  [Original]

<charconv>(C++17) cppreference.com
cppreference.com

<charconv> (C++17)

cppreference.com
 
C++
(C++20)
(C++20)
(C++11)
(C++20)
/
(C++11)
(C++11)
(C++11)
(C++17)
 
<concepts> (C++20)
<system_error> (C++11)

<memory_resource> (C++17)  
<type_traits> (C++11)
<ratio> (C++11)
<utility>
<tuple> (C++11)
<optional> (C++17)
<variant> (C++17)
<any> (C++17)
<expected> (C++23)
<bitset>

<charconv> (C++17)
<format> (C++20)
<bit> (C++20)

<cuchar> (C++11)

<flat_set> (C++23)
<span> (C++20)
<mdspan> (C++23)

<iterator>
<ranges> (C++20)
<generator> (C++23)
<cfenv> (C++11)
<complex>
<numbers> (C++20)

<chrono> (C++11)
<codecvt> (C++11/17*)
/
<filesystem> (C++17)
<cstdio>
<cinttypes> (C++11)
<strstream> (C++98*)
<regex> (C++11)
<stop_token> (C++20)
<thread> (C++11)
<atomic> (C++11)
<stdatomic.h> (C++23)
<mutex> (C++11)
<shared_mutex> (C++14)
<condition_variable> (C++11)  
<semaphore> (C++20)
<latch> (C++20)
<barrier> (C++20)
<future> (C++11)

C
<cstdbool> (C++11/17/20*)  
<ccomplex> (C++11/17/20*)
<ctgmath> (C++11/17/20*)

<cstdalign> (C++11/17/20*)

<ciso646> ( C++20)

 

.

std::to_chars std::from_chars
() []
std::from_chars
() []
std::to_chars
() []


() []
(C++17)

() []

namespace std {
  //        
  enum class chars_format {
    scientific = /*   */,
    fixed = /*   */,
    hex = /*   */,
    general = fixed | scientific
  };


  //    
  struct to_chars_result { // 
    char* ptr;
    errc ec;
    friend bool operator==(const to_chars_result&, const to_chars_result&) = default;
    constexpr explicit operator bool() const noexcept { return ec == errc{}; }
  };

  constexpr
  // 
  to_chars_result to_chars(char* first, char* last,
                           /*   */ value, int base = 10);
  // 
  to_chars_result to_chars(char* first, char* last, bool value, int base = 10) = delete;
  //  
  to_chars_result to_chars(char* first, char* last, /*     */ value);
  //  
  to_chars_result to_chars(char* first, char* last, /*     */ value,
                           chars_format fmt);
  //  
  to_chars_result to_chars(char* first, char* last, /*     */ value,
                           chars_format fmt, int precision);

  //    
  struct from_chars_result { // 
    const char* ptr;
    errc ec;
    friend bool operator==(const from_chars_result&, const from_chars_result&) = default;
    constexpr explicit operator bool() const noexcept { return ec == errc{}; }
  };

  constexpr
  // 
  from_chars_result from_chars(const char* first, const char* last,
                               /*   */& value, int base = 10);
  //  
  from_chars_result from_chars(const char* first, const char* last,
                               /*     */& value,
                               chars_format fmt = chars_format::general);
}

Web Proxy Viewer  |  New URL  |  Original Page