SeqAn3  3.0.3
The Modern C++ library for sequence analysis.
memory

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...

+ Collaboration diagram for memory:

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...
 

Detailed Description

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.

Function Documentation

◆ to_address()

template<typename T >
constexpr T* std::to_address ( T *  p)
constexprnoexcept

Obtain the address represented by p without forming a reference to the object pointed to by p.

See also
https://en.cppreference.com/w/cpp/memory/to_address