Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::optional<T>::~optional

      From cppreference.com
      <cpp‎ |experimental‎ |optional
       
       
       
       
       
      ~optional();
      (library fundamentals TS)

      If the object contains a value and the typeT is not trivially destructible (seestd::is_trivially_destructible), destroys the contained value by calling its destructor, as if byval->T::~T().

      Otherwise, does nothing.

      [edit]Notes

      IfT is trivially-destructible, then this destructor is also trivial, sooptional<T> is also trivially-destructible.

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/optional/%7Eoptional&oldid=78313"

      [8]ページ先頭

      ©2009-2026 Movatter.jp