summaryrefslogtreecommitdiffhomepage
path: root/include/ocl/smart_ptr.hpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-16 22:27:07 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-16 22:27:07 +0100
commit15aac395a599c92016bd2d74a7c23ca6eea3d04d (patch)
treedf161c338e18369e075f4e33e3f51e4c362f35fc /include/ocl/smart_ptr.hpp
parent7096a2b477782db54d9e0829b6ad7c6a3314dc2c (diff)
chore: format codebase according to .clang-format.v2.0
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/ocl/smart_ptr.hpp')
-rw-r--r--include/ocl/smart_ptr.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/ocl/smart_ptr.hpp b/include/ocl/smart_ptr.hpp
index 23671f1..489f277 100644
--- a/include/ocl/smart_ptr.hpp
+++ b/include/ocl/smart_ptr.hpp
@@ -21,9 +21,12 @@ namespace ocl
template <class T>
using shared_ptr = std::shared_ptr<T>;
- /// @brief Constructs a `delete_ptr`, that is, a pointer that isn't deleted from the heap.
- template<class T>
- inline auto delete_ptr(T* object) -> auto { return shared_ptr<T>{ object, boost::null_deleter{}}; }
-}
+ /// @brief Constructs a `delete_ptr`, that is, a pointer that isn't deleted from the heap.
+ template <class T>
+ inline auto delete_ptr(T* object) -> auto
+ {
+ return shared_ptr<T>{object, boost::null_deleter{}};
+ }
+} // namespace ocl
#endif // ifndef __OCL_SMART_PTR \ No newline at end of file