28 #ifndef RTTR_DESTRUCTOR_H_
29 #define RTTR_DESTRUCTOR_H_
31 #include "rttr/detail/base/core_prerequisites.h"
32 #include "rttr/detail/misc/class_item_mapper.h"
42 class destructor_wrapper_base;
44 RTTR_API destructor create_invalid_item();
72 class RTTR_API destructor
80 bool is_valid() const RTTR_NOEXCEPT;
87 explicit operator
bool() const RTTR_NOEXCEPT;
96 type get_declaring_type() const RTTR_NOEXCEPT;
103 type get_destructed_type() const RTTR_NOEXCEPT;
113 bool invoke(
variant& obj) const RTTR_NOEXCEPT;
120 bool operator==(const
destructor& other) const RTTR_NOEXCEPT;
127 bool operator!=(const
destructor& other) const RTTR_NOEXCEPT;
130 destructor(const detail::destructor_wrapper_base* wrapper) RTTR_NOEXCEPT;
133 friend T detail::create_item(const detail::class_item_to_wrapper_t<T>* wrapper);
135 friend T detail::create_invalid_item();
138 const detail::destructor_wrapper_base* m_wrapper;
143 #endif // RTTR_DESTRUCTOR_H_