Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::vector<T,Allocator>::~vector

      From cppreference.com
      <cpp‎ |container‎ |vector

      [edit template]
       
       
       
      std::vector
      Member types
      Member functions
      Non-member functions
      (until C++20)(until C++20)(until C++20)(until C++20)(until C++20)
      Deduction guides(C++17)
       
      ~vector();
      (constexpr since C++20)

      Destructs thevector. The destructors of the elements are called and the used storage is deallocated.

      [edit]Complexity

      Linear in the size of*this.

      [edit]Notes

      If the elements are pointers, the pointed-to objects are not destroyed.

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/container/vector/%7Evector&oldid=135100"

      [8]ページ先頭

      ©2009-2025 Movatter.jp