VCCC  2024.05
VisualCamp Common C++ library
destroy.hpp
Go to the documentation of this file.
1 //
2 // Created by YongGyu Lee on 3/20/24.
3 //
4 
5 #ifndef VCCC_MEMORY_DESTROY_HPP_
6 #define VCCC_MEMORY_DESTROY_HPP_
7 
11 
12 namespace vccc {
13 
16 
17 template<typename ForwardIt>
18 VCCC_CONSTEXPR_AFTER_CXX20 void destroy(ForwardIt first, ForwardIt last) {
19  for (; first != last; ++first) {
21  }
22 }
23 
25 
26 } // namespace vccc
27 
28 #endif // VCCC_MEMORY_DESTROY_HPP_
#define VCCC_CONSTEXPR_AFTER_CXX20
Definition: constexpr.hpp:26
VCCC_CONSTEXPR_AFTER_CXX20 void destroy(ForwardIt first, ForwardIt last)
Definition: destroy.hpp:18
std::enable_if_t< std::is_object< T >::value, T * > addressof(T &t) noexcept
Definition: addressof.hpp:33
Definition: directory.h:12
constexpr VCCC_INLINE_OR_STATIC detail::element_niebloid< 0 > first
Definition: key_value.hpp:34
VCCC_CONSTEXPR_AFTER_CXX20 void destroy_at(T *p)
Definition: destroy_at.hpp:16