std::error_condition(3cxx)
πΈ NAME πΈ
std::error_condition β that's the class, bestie. The manual name is 3cxx (libstdc++ C++ manual-page energy), and this whole page is literally the std::error_condition(3cxx) moment. π
β¨
β¨ SYNOPSIS β¨
#include <system_error>
π Public Member Functions π
error_condition () noexceptβ Initialize with a zero (no error) value and the generic category.template<typename _ErrorConditionEnum , typename = _Check<_ErrorConditionEnum>> error_condition (_ErrorConditionEnum __e) noexceptβ Initialize with a user-defined type, by callingmake_error_condition.error_condition (const error_condition &)=defaultβ defaulted, no extra description given.error_condition (int __v, const error_category &__cat) noexceptβ Initialize with the specified value and category.void assign (int __v, const error_category &__cat) noexceptβ Set the value and category.const error_category & category () const noexceptβ The error category that this error belongs to.void clear () noexceptβ Reset the value and category to the default-constructed state.string message () constβ The category's description of the value.operator bool () const noexceptβ Test whethervalue()is non-zero.error_condition & operator= (const error_condition &)=defaultβ defaulted, no extra description given.int value () const noexceptβ The error value.
π¦ Related Symbols π¦
(Note that these are not member symbols.)
error_condition make_error_condition (errc __e) noexceptstrong_ordering operator (const error_condition &__lhs, const error_condition &__rhs) noexceptbool operator== (const error_code &__lhs, const error_code &__rhs) noexceptbool operator== (const error_code &__lhs, const error_condition &__rhs) noexceptbool operator== (const error_condition &__lhs, const error_condition &__rhs) noexcept
π Detailed Description π
Class error_condition
This class represents error conditions that may be visible at an API boundary. Different error_code values that can occur within a library or module might map to the same error_condition.
An error_condition represents something that the program can test for, and subsequently take appropriate action.
Since: C++11 π
π Constructor & Destructor Documentation π
std::error_condition::error_condition () [inline], [noexcept]
Initialize with a zero (no error) value and the generic category. π«Ά
std::error_condition::error_condition (int __v, const error_category & __cat) [inline], [noexcept]
Initialize with the specified value and category. β¨
template<typename _ErrorConditionEnum , typename = _Check<_ErrorConditionEnum>> std::error_condition::error_condition (_ErrorConditionEnum __e) [inline], [noexcept]
Initialize with a user-defined type, by calling make_error_condition.
References make_error_condition().
π Member Function Documentation π
void std::error_condition::assign (int __v, const error_category & __cat) [inline], [noexcept]
Set the value and category.
Referenced by clear().
const error_category & std::error_condition::category () const [inline], [noexcept]
The error category that this error belongs to.
Referenced by message().
void std::error_condition::clear () [inline], [noexcept]
Reset the value and category to the default-constructed state.
References assign(), and std::generic_category().
string std::error_condition::message () const [inline]
The category's description of the value.
References category(), and value().
std::error_condition::operator bool () const [inline], [explicit], [noexcept]
Test whether value() is non-zero.
int std::error_condition::value () const [inline], [noexcept]
The error value.
Referenced by message().
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
π okay bestie, that's the whole page: source/version libstdc++, manual name std::error_condition(3cxx), and the original footer doesn't print a date, so I'm not gonna invent one β no cap. Bye-bye! π«Άβ¨
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms