Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1000 Bytes

to-chars-result-structure.md

File metadata and controls

37 lines (26 loc) · 1000 Bytes
description title ms.date f1_keywords helpviewer_keywords
Learn more about: to_chars_result struct
to_chars_result struct
07/22/2020
charconv/std::to_chars_result
to_chars_result class
to_chars_result structure

to_chars_result struct

Syntax

struct to_chars_result {
    char* ptr;
    errc ec;
};

Members

Member Description
ptr If ec is equal to errc{}, the conversion was successful and ptr is the one-past-the-end pointer of the written characters. Otherwise, ptr has the value of the to_chars() parameter last, and the contents of the range [first, last) are unspecified.
ec The conversion error code. For specific error codes, see errc.

Requirements

Header: <charconv>

Namespace: std

Compiler option: /std:c++17 or later is required.

See also

to_chars