We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3cfa34 commit bf0cb52Copy full SHA for bf0cb52
subspace/option/option.h
@@ -93,8 +93,9 @@ using sus::option::__private::StoragePointer;
93
/// owns the `T` in that case and it ensures the `Option` and the `T` are both
94
/// accessed with the same const-ness.
95
///
96
-/// If a type `T` satisties `sus::mem::NeverValueField`, then `Option<T>` will
97
-/// have the same size as T.
+/// If a type `T` is a reference or satisties `sus::mem::NeverValueField`, then
+/// `Option<T>` will have the same size as T and will be internally represented
98
+/// as just a `T` (or `T*` in the case of a reference `T&`).
99
template <class T>
100
class Option final {
101
// Note that `const T&` is allowed (so we don't `std::remove_reference_t<T>`)
0 commit comments