Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::basic_filebuf<CharT,Traits>::~basic_filebuf

      From cppreference.com
      <cpp‎ |io‎ |basic filebuf
       
       
       
       
      virtual ~basic_filebuf();

      Callsclose() to close the associated file and destructs all other members ofbasic_filebuf. If an exception occurs during the destruction of the object, including the call toclose(), it is caught and not rethrown.

      Contents

      [edit]Notes

      Typically called by the destructor ofstd::basic_fstream.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]Defect reports

      The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

      DRApplied toBehavior as publishedCorrect behavior
      LWG 622C++98it was unclear how to handle the exception thrown during destructionit is caught but not rethrown

      [edit]See also

      constructs abasic_filebuf object
      (public member function)[edit]
      flushes the put area buffer and closes the associated file
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/io/basic_filebuf/%7Ebasic_filebuf&oldid=182158"

      [8]ページ先頭

      ©2009-2025 Movatter.jp