aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/util/OptionalRef.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-20 14:01:31 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-20 14:01:31 +0100
commit02845c3d25130e9473604cb2eeee42a7a7a8eadf (patch)
tree71969b17161d13d044d033d0ee7fd47deadb6575 /src/crepe/util/OptionalRef.h
parentd79148947bc43764b041687b7c6ad2d6c944f70b (diff)
`make format`
Diffstat (limited to 'src/crepe/util/OptionalRef.h')
-rw-r--r--src/crepe/util/OptionalRef.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/crepe/util/OptionalRef.h b/src/crepe/util/OptionalRef.h
index 8417a25..0a94ae5 100644
--- a/src/crepe/util/OptionalRef.h
+++ b/src/crepe/util/OptionalRef.h
@@ -23,7 +23,7 @@ public:
*
* \return Reference to this (required for operator)
*/
- OptionalRef<T> & operator=(T & ref);
+ OptionalRef<T> & operator=(T & ref);
/**
* \brief Check if this reference is not empty
*
@@ -51,13 +51,13 @@ public:
void clear() noexcept;
//! Copy constructor
- OptionalRef(const OptionalRef<T> &);
+ OptionalRef(const OptionalRef<T> &);
//! Move constructor
- OptionalRef(OptionalRef<T> &&);
+ OptionalRef(OptionalRef<T> &&);
//! Copy assignment
- OptionalRef<T> & operator=(const OptionalRef<T> &);
+ OptionalRef<T> & operator=(const OptionalRef<T> &);
//! Move assignment
- OptionalRef<T> & operator=(OptionalRef<T> &&);
+ OptionalRef<T> & operator=(OptionalRef<T> &&);
private:
/**
@@ -68,7 +68,6 @@ private:
T * ref = nullptr;
};
-}
+} // namespace crepe
#include "OptionalRef.hpp"
-