Add trivial constructors to pointers.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
f7a161c690
commit
3b4ba7c82b
|
@ -14,6 +14,7 @@ namespace ArbUt {
|
|||
T* _raw;
|
||||
|
||||
public:
|
||||
inline BorrowedPtr<T>(){}
|
||||
/// @brief Initialise a BorrowedPtr with a specific raw pointer.
|
||||
inline BorrowedPtr<T>(T* ptr) : _raw(ptr) { AssertNotNull(ptr); };
|
||||
/// @brief Initialise a BorrowedPtr from a copy.
|
||||
|
|
|
@ -14,6 +14,7 @@ namespace ArbUt {
|
|||
T* _raw;
|
||||
|
||||
public:
|
||||
inline UniquePtr<T>() {}
|
||||
/// @brief Initialise a UniquePtr with a specific raw pointer.
|
||||
inline UniquePtr<T>(T* ptr) : _raw(ptr) { AssertNotNull(ptr); };
|
||||
/// @brief Initialise a UniquePtr from a copy.
|
||||
|
|
Loading…
Reference in New Issue