ΒΆtemplate <class Ptr>
auto to_address(const Ptr& P)
    -> decltype(P.operator->())

Description

Returns a raw pointer that represents the same address as the argument. The late bound return should be removed once we move to C++14 to better align with the C++20 declaration. Also, this implementation can be removed once we move to C++20 where it's defined as std::to_addres() The std::pointer_traits < >::to_address(p) variations of these overloads has not been implemented.

Declared at: llvm/include/llvm/ADT/STLExtras.h:1582

Templates

Ptr

Parameters

const Ptr& P