Style fixes
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
eda1a29427
commit
a618f2b98b
|
@ -27,5 +27,4 @@ using f64 = double;
|
|||
#define nullable
|
||||
#endif
|
||||
|
||||
|
||||
#endif // ARBUTILS_DEFINES_HPP
|
||||
|
|
|
@ -10,9 +10,9 @@ namespace ArbUt {
|
|||
/// pointers will be called.
|
||||
template <class ValueT> class UniquePtrList {
|
||||
private:
|
||||
std::vector<ValueT* non_null> _vector;
|
||||
using iterator = typename std::vector<ValueT* non_null>::iterator;
|
||||
using const_iterator = typename std::vector<ValueT* non_null>::const_iterator;
|
||||
std::vector<ValueT * non_null> _vector;
|
||||
using iterator = typename std::vector<ValueT * non_null>::iterator;
|
||||
using const_iterator = typename std::vector<ValueT * non_null>::const_iterator;
|
||||
|
||||
public:
|
||||
/// @brief The type of the value stored in the list.
|
||||
|
@ -21,20 +21,21 @@ namespace ArbUt {
|
|||
inline UniquePtrList() noexcept : _vector() {}
|
||||
/// @brief Initialises a UniquePtrList from a std::vector of raw pointers.
|
||||
/// @param vec A std::vector of raw pointers.
|
||||
inline UniquePtrList(const std::vector<ValueT* non_null>& vec) : _vector(vec) { EnsureAllNotNull(vec); }
|
||||
inline UniquePtrList(const std::vector<ValueT * non_null>& vec) : _vector(vec) { EnsureAllNotNull(vec); }
|
||||
/// @brief Initialises a UniquePtrList with a certain capacity reserved for use. This does not set immediate
|
||||
/// size.
|
||||
/// @param capacity The desired capacity.
|
||||
explicit inline UniquePtrList(size_t capacity) : _vector() { _vector.reserve(capacity); }
|
||||
/// @brief Initialises a UniquePtrList from a initialiser_list.
|
||||
/// @param l A initialiser_list
|
||||
inline UniquePtrList(const std::initializer_list<ValueT* non_null>& l) noexcept : _vector(l) {
|
||||
inline UniquePtrList(const std::initializer_list<ValueT * non_null>& l) noexcept : _vector(l) {
|
||||
EnsureAllNotNull(_vector);
|
||||
}
|
||||
/// @brief Initialises a UniquePtrList from a raw pointer range.
|
||||
/// @param begin The raw pointer to the start of the list.
|
||||
/// @param end The raw pointer to the end of the list.
|
||||
inline UniquePtrList(ValueT* non_null const* non_null begin, ValueT* non_null const* non_null end) noexcept : _vector(begin, end) {
|
||||
inline UniquePtrList(ValueT* non_null const* non_null begin, ValueT* non_null const* non_null end) noexcept
|
||||
: _vector(begin, end) {
|
||||
EnsureAllNotNull(_vector);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue