mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 05:30:33 +03:00
Add explanatory comment to addressOf
This commit is contained in:
parent
13b6894eb6
commit
ab4008c13f
1 changed files with 2 additions and 0 deletions
|
@ -62,4 +62,6 @@ version (StdUnittest)
|
|||
}
|
||||
}
|
||||
|
||||
// Used instead of `&object.member` when `member` may be
|
||||
// either a field or a @property function.
|
||||
package(std) T* addressOf(T)(ref T val) { return &val; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue