mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 00:26:19 +08:00
Added qualifications to the comments regading Box and Ref
This commit is contained in:
+3
-1
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user