schema progress
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#ifndef OBJECT_PTR_HPP
|
||||
#define OBJECT_PTR_HPP
|
||||
|
||||
namespace matador::object {
|
||||
template <typename Type>
|
||||
class object_ptr {
|
||||
public:
|
||||
Type* operator->() { return ptr; };
|
||||
Type& operator*() { return *ptr; };
|
||||
|
||||
private:
|
||||
Type* ptr{nullptr};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif //OBJECT_PTR_HPP
|
||||
Reference in New Issue
Block a user