Added qualifications to the comments regading Box and Ref

This commit is contained in:
Patrick Urbanke
2023-11-05 13:16:51 +01:00
parent 31bf994669
commit 08806d1ebf
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -7,7 +7,9 @@
namespace rfl {
/// The Box class behaves very similarly to the unique_ptr, but unlike the
/// unique_ptr, it is 100% guaranteed to be filled at all times.
/// unique_ptr, it is 100% guaranteed to be filled at all times (unless the user
/// tries to access it after calling std::move does something else that is
/// clearly bad practice).
template <class T>
class Box {
public:
+3 -1
View File
@@ -7,7 +7,9 @@
namespace rfl {
/// The Ref class behaves very similarly to the shared_ptr, but unlike the
/// shared_ptr, it is 100% guaranteed to be filled at all times.
/// unique_ptr, it is 100% guaranteed to be filled at all times (unless the user
/// tries to access it after calling std::move does something else that is
/// clearly bad practice).
template <class T>
class Ref {
public: