Init
This commit is contained in:
26
cppdraft/specialized/addressof.md
Normal file
26
cppdraft/specialized/addressof.md
Normal 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.15 constant subexpression"))
|
||||
if E is an lvalue constant subexpression[.](#2.sentence-1)
|
||||
Reference in New Issue
Block a user