retdec
|
Declarations, aliases, macros, etc. for the use of smart pointers. More...
#include <cstddef>
#include <memory>
Go to the source code of this file.
Classes | |
class | retdec::llvmir2hll::SharableFromThis< ForClass > |
Enables shared_from_this() in the inheriting class. More... | |
class | retdec::llvmir2hll::WkPtrEqPredicate< T > |
A predicate for checking the equality of two weak pointers. More... | |
Namespaces | |
retdec | |
retdec::llvmir2hll | |
Typedefs | |
template<typename T > | |
using | retdec::llvmir2hll::ShPtr = std::shared_ptr< T > |
An alias for a shared pointer. More... | |
template<typename T > | |
using | retdec::llvmir2hll::WkPtr = std::weak_ptr< T > |
An alias for a weak pointer. More... | |
template<typename T > | |
using | retdec::llvmir2hll::UPtr = std::unique_ptr< T > |
An alias for a unique pointer. More... | |
Functions | |
template<typename To , typename From > | |
ShPtr< To > | retdec::llvmir2hll::cast (const ShPtr< From > &ptr) noexcept |
Equivalent of dynamic_cast<> for shared pointers. More... | |
template<typename To , typename From > | |
ShPtr< To > | retdec::llvmir2hll::ucast (const ShPtr< From > &ptr) noexcept |
Equivalent of static_cast<> for shared pointers (unchecked cast). More... | |
template<typename To , typename From > | |
bool | retdec::llvmir2hll::isa (const ShPtr< From > &ptr) noexcept |
Returns true if ptr is of type To or can be casted from From to To , false otherwise. More... | |
Declarations, aliases, macros, etc. for the use of smart pointers.