W3cubDocs

/C++

Standard library header <contract>

This header is part of the error handling library.

Classes

(C++20)
provides information about contract violation generated by an implementation
(class)

Synopsis

namespace std {
  class contract_violation;
}

Class std::contract_violation

class contract_violation {
public:
  uint_least32_t line_number() const noexcept;
  string_view file_name() const noexcept;
  string_view function_name() const noexcept;
  string_view comment() const noexcept;
  string_view assertion_level() const noexcept;
};

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/header/contract