tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
ranges_destroy_at.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSL-1.0
2
3#ifndef TETL_MEMORY_RANGES_DESTROY_AT_HPP
4#define TETL_MEMORY_RANGES_DESTROY_AT_HPP
5
10
11namespace etl::ranges {
12
13inline constexpr struct destroy_at_fn {
14 template <etl::destructible T>
15 constexpr auto operator()(T* p) const noexcept -> void
16 {
18 }
20
21} // namespace etl::ranges
22
23#endif // TETL_MEMORY_RANGES_DESTROY_AT_HPP
Definition ranges_in_fun_result.hpp:11
constexpr auto destroy_at(T *p) -> void
If T is not an array type, calls the destructor of the object pointed to by p, as if by p->~T()....
Definition destroy_at.hpp:16
Definition ranges_destroy_at.hpp:13
constexpr auto operator()(T *p) const noexcept -> void
Definition ranges_destroy_at.hpp:15