File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,28 @@ class ArduinoCellular {
108
108
*/
109
109
~ArduinoCellular ();
110
110
111
- // Delete copy operations (since unique_ptr can't be copied)
111
+ /* *
112
+ * @brief Deleted copy constructor and assignment operator to prevent copying.
113
+ * unique_ptr is used to manage the lifetime of the clients but they cannot be copied.
114
+ */
112
115
ArduinoCellular (const ArduinoCellular&) = delete ;
116
+
117
+ /* *
118
+ * @brief Deleted assignment operator to prevent copying.
119
+ * unique_ptr is used to manage the lifetime of the clients but they cannot be copied.
120
+ */
113
121
ArduinoCellular& operator =(const ArduinoCellular&) = delete ;
114
122
115
- // Enable move operations
123
+ /* *
124
+ * @brief Move constructor for the ArduinoCellular class.
125
+ * Allows moving the instance to another instance.
126
+ */
116
127
ArduinoCellular (ArduinoCellular&&) = default ;
128
+
129
+ /* *
130
+ * @brief Move assignment operator for the ArduinoCellular class.
131
+ * Allows moving the instance to another instance.
132
+ */
117
133
ArduinoCellular& operator =(ArduinoCellular&&) = default ;
118
134
119
135
/* *
You can’t perform that action at this time.
0 commit comments