std::inplace_vector<T,N>::~inplace_vector
From cppreference.com
< cpp | container | inplace vector
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Containers library
(C++17)
(C++11)
(C++26)
(C++26)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++23)
(C++23)
(C++23)
(C++23)
(C++20)
(C++23)
Tables
std::inplace_vector
inplace_vector::~inplace_vector
constexpr ~inplace_vector();
(since C++26)
Destructs the inplace_vector
. The destructors of the elements are called and the used storage is deallocated.
If std::is_trivially_destructible_v <T> is true, the destructor is trivial.
[edit] Complexity
Linear in the size of *this.
[edit] Notes
If the elements are pointers, the pointed-to objects are not destroyed.