#include <shared.h>
|
static ExpectedT | tryFrom (std::shared_ptr< TT > const &maybe_null) noexcept |
| Construct from a possibly null shared_ptr The return value is an object containing either a non-null Shared object pointer,. More...
|
|
template<class... TArgs> |
static ExpectedT | tryMake (TArgs &&... args) noexcept |
| Construct and also makes interior object T The return value is an object containing either a non-null Shared object pointer, for the new object, or an farm_ng::Error object if memory allocation failst or the constructor for the object throws. More...
|
|
static Shared | from (std::shared_ptr< TT > const &shared) |
| Construct from a possibly null shared_ptr Panics if shared is null. See tryFrom() for alternate. More...
|
|
template<class... TArgs> |
static Shared< TT > | make (TArgs &&... args) |
| Construct and also makes interior object T Panics if the constructor throws. See tryFrom() for alternate. More...
|
|
◆ BadExpectedAccess
◆ ExpectedT
◆ Shared() [1/7]
◆ Shared() [2/7]
template<class TT >
template<DerivedFrom< TT > TDerived>
◆ Shared() [3/7]
template<class TT >
template<DerivedFrom< TT > TDerived>
◆ Shared() [4/7]
template<class TT >
template<DerivedFrom< TT > TDerived>
◆ Shared() [5/7]
◆ Shared() [6/7]
◆ Shared() [7/7]
◆ from()
Construct from a possibly null shared_ptr Panics if shared is null. See tryFrom()
for alternate.
◆ make()
template<class TT >
template<class... TArgs>
Construct and also makes interior object T Panics if the constructor throws. See tryFrom()
for alternate.
◆ operator std::shared_ptr< TT >()
◆ operator*() [1/2]
Returns the interior object which is guaranteed to be available.
◆ operator*() [2/2]
Returns the interior object which is guaranteed to be available.
◆ operator->() [1/2]
Returns the interior object which is guaranteed to be available.
◆ operator->() [2/2]
Returns the interior object which is guaranteed to be available.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator==()
◆ ptr() [1/2]
◆ ptr() [2/2]
◆ sharedPtr()
◆ tryFrom()
Construct from a possibly null shared_ptr The return value is an object containing either a non-null Shared object pointer,.
◆ tryMake()
template<class TT >
template<class... TArgs>
Construct and also makes interior object T The return value is an object containing either a non-null Shared object pointer, for the new object, or an farm_ng::Error object if memory allocation failst or the constructor for the object throws.
The documentation for this class was generated from the following file:
- projects/farm-ng-core/cpp/farm_ng/core/misc/shared.h