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

The <memory> header from C++20's standard library. More...

+ Collaboration diagram for memory:

Macros

#define SEQAN3_CPP_LIB_TO_ADDRESS   IMPLEMENTATION_DEFINED
 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.
 

Functions

template<typename T >
constexpr auto std::to_address (const T &p) noexcept
 Obtain the address represented by p without forming a reference to the object pointed to by p. More...
 
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

The <memory> header from C++20's standard library.

Function Documentation

◆ to_address() [1/2]

template<typename T >
constexpr auto std::to_address ( const 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

◆ to_address() [2/2]

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