This commit is contained in:
2025-10-25 03:02:53 +03:00
commit 043225d523
3416 changed files with 681196 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
[specialized.addressof]
# 20 Memory management library [[mem]](./#mem)
## 20.2 Memory [[memory]](memory#specialized.addressof)
### 20.2.11 addressof [specialized.addressof]
[🔗](#lib:addressof)
`template<class T> constexpr T* addressof(T& r) noexcept;
`
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/memory.tex#L2117)
*Returns*: The actual address of the object or function referenced by r, even in the
presence of an overloaded operator&[.](#1.sentence-1)
[2](#2)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/memory.tex#L2122)
*Remarks*: An expression addressof(E) is a constant subexpression ([[defns.const.subexpr]](defns.const.subexpr "3.15constant subexpression"))
if E is an lvalue constant subexpression[.](#2.sentence-1)