This commit is contained in:
11 files changed
+20
-17
No files matched your search
@@ -1,7 +1,7 @@
|
||||
#ifndef ARBUTILS___BORROWEDPTR_HPP
|
||||
#define ARBUTILS___BORROWEDPTR_HPP
|
||||
|
||||
#include "../Assert.hpp"
|
||||
#include "../Ensure.hpp"
|
||||
|
||||
namespace ArbUt {
|
||||
/// @brief A borrowed pointer is used to indicate a pointer that is not owned by its holder. As with all Arbutils
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef ARBUTILS___OPTIONALBORROWEDPTR_HPP
|
||||
#define ARBUTILS___OPTIONALBORROWEDPTR_HPP
|
||||
|
||||
#include "../Assert.hpp"
|
||||
#include "../Ensure.hpp"
|
||||
|
||||
namespace ArbUt {
|
||||
/// @brief An optional borrowed pointer is used to indicate a pointer that is not owned by its holder. This pointer
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef ARBUTILS_OPTIONALOptionalUniquePtr_HPP
|
||||
#define ARBUTILS_OPTIONALOptionalUniquePtr_HPP
|
||||
|
||||
#include "../Assert.hpp"
|
||||
#include "../Ensure.hpp"
|
||||
|
||||
namespace ArbUt {
|
||||
/// @brief An optional unique pointer is used to indicate a pointer that is owned by its holder, and will be deleted
|
||||
|
||||
@@ -17,8 +17,8 @@ namespace ArbUt {
|
||||
/// @brief Initialises a OptionalUniquePtrList from a std::vector of raw pointers.
|
||||
/// @param vec A std::vector of raw pointers.
|
||||
inline OptionalUniquePtrList(const std::vector<ValueT*>& vec) noexcept : _vector(vec) {}
|
||||
/// @brief Initialises a OptionalUniquePtrList with a certain capacity reserved for use. This does not set immediate
|
||||
/// size.
|
||||
/// @brief Initialises a OptionalUniquePtrList with a certain capacity reserved for use. This does not set
|
||||
/// immediate size.
|
||||
/// @param capacity The desired capacity.
|
||||
explicit inline OptionalUniquePtrList(size_t capacity) : _vector() { _vector.reserve(capacity); }
|
||||
/// @brief Initialises a OptionalUniquePtrList from a initialiser_list.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef ARBUTILS___SCOPEDPTR_HPP
|
||||
#define ARBUTILS___SCOPEDPTR_HPP
|
||||
|
||||
#include "../Assert.hpp"
|
||||
#include "../Ensure.hpp"
|
||||
|
||||
namespace ArbUt {
|
||||
/// @brief An optional unique pointer is used to indicate a pointer that is owned by its holder, and will be deleted
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef ARBUTILS___UNIQUEPTR_HPP
|
||||
#define ARBUTILS___UNIQUEPTR_HPP
|
||||
|
||||
#include "../Assert.hpp"
|
||||
#include "../Ensure.hpp"
|
||||
|
||||
namespace ArbUt {
|
||||
/// @brief A unique pointer is used to indicate a pointer that is owned by its holder, and will be deleted when its
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef ARBUTILS___UNIQUEPTRLIST_HPP
|
||||
#define ARBUTILS___UNIQUEPTRLIST_HPP
|
||||
|
||||
#include "../Assert.hpp"
|
||||
#include "../Ensure.hpp"
|
||||
#include "__BorrowedPtr.hpp"
|
||||
|
||||
namespace ArbUt {
|
||||
|
||||
Reference in new issue
Block a user