Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::destructible

      From cppreference.com
      <cpp‎ |concepts
       
       
      Concepts library
       
      Defined in header<concepts>
      template<class T>
      concept destructible=std::is_nothrow_destructible_v<T>;
      (since C++20)

      The conceptdestructible specifies the concept of all types whose instances can safely be destroyed at the end of their lifetime (including reference types).

      [edit]Notes

      Unlike theDestructible named requirement,std::destructible requires the destructor to benoexcept(true), not merely non-throwing when invoked, and allows reference types and array types.

      [edit]References

      • C++23 standard (ISO/IEC 14882:2024):
      • 18.4.10 Conceptdestructible [concept.destructible]
      • C++20 standard (ISO/IEC 14882:2020):
      • 18.4.10 Conceptdestructible [concept.destructible]

      [edit]See also

      checks if a type has a non-deleted destructor
      (class template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/concepts/destructible&oldid=177889"

      [8]ページ先頭

      ©2009-2025 Movatter.jp