meta_any: replace ::owner (never released yet) with ::base
This commit is contained in:
@@ -591,11 +591,6 @@ public:
|
||||
return meta_any{*this, storage.as_ref()};
|
||||
}
|
||||
|
||||
/*! @copydoc any::owner */
|
||||
[[nodiscard]] bool owner() const noexcept {
|
||||
return storage.owner();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the current mode of a meta any object.
|
||||
* @return The current mode of the meta any object.
|
||||
@@ -604,6 +599,14 @@ public:
|
||||
return storage.policy();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns the underlying storage.
|
||||
* @return The underlyig storage.
|
||||
*/
|
||||
[[nodiscard]] const any &base() const noexcept {
|
||||
return storage;
|
||||
}
|
||||
|
||||
private:
|
||||
any storage{};
|
||||
const meta_ctx *ctx{&locator<meta_ctx>::value_or()};
|
||||
|
||||
Reference in New Issue
Block a user