Adds helper functions to the list types.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -13,6 +13,8 @@ namespace ArbUt {
|
||||
using const_iterator = typename std::vector<ValueT*>::const_iterator;
|
||||
|
||||
public:
|
||||
typedef ValueT* type;
|
||||
|
||||
inline OptionalUniquePtrList() noexcept : _vector() {}
|
||||
/// @brief Initialises a OptionalUniquePtrList from a std::vector of raw pointers.
|
||||
/// @param vec A std::vector of raw pointers.
|
||||
@@ -142,6 +144,8 @@ namespace ArbUt {
|
||||
/// @brief Returns a std::vector representation of the current list.
|
||||
/// @return A std::vector representation of the current list.
|
||||
std::vector<ValueT*>& GetStdList() noexcept { return _vector; }
|
||||
|
||||
inline OptionalUniquePtrList<ValueT>* GetListPointer() const { return this; }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,8 @@ namespace ArbUt {
|
||||
using const_iterator = typename std::vector<ValueT*>::const_iterator;
|
||||
|
||||
public:
|
||||
typedef ValueT* type;
|
||||
|
||||
inline UniquePtrList() noexcept : _vector() {}
|
||||
/// @brief Initialises a UniquePtrList from a std::vector of raw pointers.
|
||||
/// @param vec A std::vector of raw pointers.
|
||||
@@ -151,6 +153,8 @@ namespace ArbUt {
|
||||
/// @brief Returns a std::vector representation of the current list.
|
||||
/// @return A std::vector representation of the current list.
|
||||
std::vector<ValueT*>& GetStdList() noexcept { return _vector; }
|
||||
|
||||
inline OptionalUniquePtrList<ValueT>* GetListPointer() const { return this; }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user