.TH "std::logic_error" 3cxx "Sun Feb 7 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::logic_error \- One of two subclasses of exception\&. .SH SYNOPSIS .br .PP .PP Inherits \fBstd::exception\fP\&. .PP Inherited by \fB__gnu_pbds::container_error\fP, \fBstd::domain_error\fP, \fBstd::experimental::fundamentals_v1::bad_optional_access\fP, \fBstd::future_error\fP, \fBstd::invalid_argument\fP, \fBstd::length_error\fP, and \fBstd::out_of_range\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBlogic_error\fP (const char *) _GLIBCXX_TXN_SAFE" .br .ti -1c .RI "\fBlogic_error\fP (const \fBlogic_error\fP &)=default" .br .ti -1c .RI "\fBlogic_error\fP (const \fBstring\fP &__arg) _GLIBCXX_TXN_SAFE" .br .ti -1c .RI "\fBlogic_error\fP (\fBlogic_error\fP &&) noexcept" .br .ti -1c .RI "\fBlogic_error\fP & \fBoperator=\fP (const \fBlogic_error\fP &)=default" .br .ti -1c .RI "\fBlogic_error\fP & \fBoperator=\fP (\fBlogic_error\fP &&) noexcept" .br .ti -1c .RI "virtual const char * \fBwhat\fP () const _GLIBCXX_TXN_SAFE_DYN noexcept" .br .in -1c .SH "Detailed Description" .PP One of two subclasses of exception\&. Logic errors represent problems in the internal logic of a program; in theory, these are preventable, and even detectable before the program runs (e\&.g\&., violations of class invariants)\&. .PP Definition at line 113 of file stdexcept\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.