tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
to_address.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

template<typename Ptr>
constexpr auto to_address (Ptr const &ptr) noexcept
 Obtain the address represented by p without forming a reference to the object pointed to by p.
 
template<typename T>
requires (not is_function_v<T>)
constexpr auto to_address (T *ptr) noexcept -> T *
 Obtain the address represented by p without forming a reference to the object pointed to by p.