A workaround for __cpp_lib_to_address for gcc version >=8.0 and < 9.4 (in C++20 mode). Those versions implemented std::to_address, but did not define that feature detection macro. More...
Functions | |
template<typename T > | |
constexpr T * | std::to_address (T *p) noexcept |
Obtain the address represented by p without forming a reference to the object pointed to by p. More... | |
A workaround for __cpp_lib_to_address for gcc version >=8.0 and < 9.4 (in C++20 mode). Those versions implemented std::to_address, but did not define that feature detection macro.
The <memory> header from C++20's standard library.
|
no-apiconstexprnoexcept |
Obtain the address represented by p without forming a reference to the object pointed to by p.