to_address overloads

Synopses

Declared in <llvm/ADT/STLForwardCompat.h>

Returns a raw pointer that represents the same address as the argument.

template<class Ptr>
auto
to_address(Ptr const& P);

Overload for raw pointers.

template<class T>
constexpr
T*
to_address(T* P);

Return Value

  • A raw pointer representing the same address as P.

  • P unchanged.

Parameters

Name

Description

P

Fancy pointer whose address is converted.

Created with MrDocs