ORIGINAL
Loading...
Searching...
No Matches
deleter.h
Go to the documentation of this file.
1#ifndef DELETER_H
2#define DELETER_H
3
17namespace original {
29 template<typename TYPE, template<typename> class DERIVED>
31 public:
36 template<typename T>
38
44
50
58 };
59
70 public:
75 template<typename T>
77
82
88
96 };
97
129
142 public:
146 constexpr deleter() noexcept = default;
147
152
159 };
160}
161
164
167
170 delete ptr;
171}
172
173template<typename TYPE>
174void original::deleter<TYPE[]>::operator()(const TYPE* ptr) const noexcept {
175 delete[] ptr;
176}
177
178#endif //DELETER_H
constexpr deleterBase() noexcept=default
Default constructor.
Base class for deleters defining the deletion policy interface.
Definition deleter.h:30
constexpr deleterBase() noexcept=default
Default constructor.
constexpr deleter() noexcept=default
Default constructor.
Default deletion policy for single objects.
Definition deleter.h:109
constexpr deleter() noexcept=default
Default constructor.
void operator()(const TYPE *ptr) const noexcept override
Deletes a single object.
Definition deleter.h:169
Unique ownership smart pointer with move semantics.
Definition ownerPtr.h:37
Main namespace for the project Original.
Definition algorithms.h:21