Path: blob/main/contrib/llvm-project/libcxx/include/__charconv/to_chars_result.h
35262 views
// -*- C++ -*-1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//89#ifndef _LIBCPP___CHARCONV_TO_CHARS_RESULT_H10#define _LIBCPP___CHARCONV_TO_CHARS_RESULT_H1112#include <__config>13#include <__system_error/errc.h>1415#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)16# pragma GCC system_header17#endif1819_LIBCPP_BEGIN_NAMESPACE_STD2021#if _LIBCPP_STD_VER >= 172223struct _LIBCPP_EXPORTED_FROM_ABI to_chars_result {24char* ptr;25errc ec;26# if _LIBCPP_STD_VER >= 2027_LIBCPP_HIDE_FROM_ABI friend bool operator==(const to_chars_result&, const to_chars_result&) = default;28# endif29# if _LIBCPP_STD_VER >= 2630_LIBCPP_HIDE_FROM_ABI constexpr explicit operator bool() const noexcept { return ec == errc{}; }31# endif32};3334#endif // _LIBCPP_STD_VER >= 173536_LIBCPP_END_NAMESPACE_STD3738#endif // _LIBCPP___CHARCONV_TO_CHARS_RESULT_H394041