|
#ifndef OBJECT_PTR_HPP
|
|
#define OBJECT_PTR_HPP
|
|
|
|
namespace matador::object {
|
|
template <typename Type>
|
|
class object_ptr {
|
|
public:
|
|
using value_type = Type;
|
|
Type* operator->() { return ptr; };
|
|
Type& operator*() { return *ptr; };
|
|
|
|
private:
|
|
Type* ptr{nullptr};
|
|
};
|
|
|
|
}
|
|
|
|
#endif //OBJECT_PTR_HPP
|