implemented lazy loading for object_ptr and belongs_to
This commit is contained in:
@@ -44,6 +44,9 @@ public:
|
||||
value(value &&x) noexcept;
|
||||
value& operator=(value &&x) noexcept;
|
||||
|
||||
bool operator==(const value& rhs) const;
|
||||
bool operator!=(const value& rhs) const;
|
||||
|
||||
template<class Type>
|
||||
std::optional<Type> as() const {
|
||||
if (std::holds_alternative<Type>(value_)) {
|
||||
|
||||
Reference in New Issue
Block a user