@@ -182,9 +182,9 @@ class DelegateFreeAsync<RetType(Args...)> : public DelegateFree<RetType(Args...)
182182 // / @brief Creates a copy of the current object.
183183 // / @details Clones the current instance of the class by creating a new object
184184 // / and copying the state of the current object to it.
185- // / @return A pointer to a new `ClassType` instance.
186- // / @post The caller is responsible for deleting the clone object.
187- // / @throws std::bad_alloc If dynamic memory allocation fails and DMQ_ASSERTS not defined .
185+ // / @return A pointer to a new `ClassType` instance or nullptr if allocation fails .
186+ // / @post The caller is responsible for deleting the clone object and checking for
187+ // / nullptr .
188188 virtual ClassType* Clone () const override {
189189 return new (std::nothrow) ClassType (*this );
190190 }
@@ -482,9 +482,9 @@ class DelegateMemberAsync<TClass, RetType(Args...)> : public DelegateMember<TCla
482482 // / @brief Creates a copy of the current object.
483483 // / @details Clones the current instance of the class by creating a new object
484484 // / and copying the state of the current object to it.
485- // / @return A pointer to a new `ClassType` instance.
486- // / @post The caller is responsible for deleting the clone object.
487- // / @throws std::bad_alloc If dynamic memory allocation fails and DMQ_ASSERTS not defined .
485+ // / @return A pointer to a new `ClassType` instance or nullptr if allocation fails .
486+ // / @post The caller is responsible for deleting the clone object and checking for
487+ // / nullptr .
488488 virtual ClassType* Clone () const override {
489489 return new (std::nothrow) ClassType (*this );
490490 }
@@ -723,9 +723,9 @@ class DelegateFunctionAsync<RetType(Args...)> : public DelegateFunction<RetType(
723723 // / @brief Creates a copy of the current object.
724724 // / @details Clones the current instance of the class by creating a new object
725725 // / and copying the state of the current object to it.
726- // / @return A pointer to a new `ClassType` instance.
727- // / @post The caller is responsible for deleting the clone object.
728- // / @throws std::bad_alloc If dynamic memory allocation fails and DMQ_ASSERTS not defined .
726+ // / @return A pointer to a new `ClassType` instance or nullptr if allocation fails .
727+ // / @post The caller is responsible for deleting the clone object and checking for
728+ // / nullptr .
729729 virtual ClassType* Clone () const override {
730730 return new (std::nothrow) ClassType (*this );
731731 }
0 commit comments