Skip to content

Function ptr_cast

function ptr_cast(U *) meta

template <typename T, typename U>
KFR_INTRINSIC constexpr static T* ptr_cast(U* ptr) noexcept { … }

Template parameters
T target pointee type
U source pointee type

Fully qualified name: kfr::ptr_cast(U *)

Declared at meta.hpp:1662

Function ptr_cast

function ptr_cast(const U *) meta

template <typename T, typename U>
KFR_INTRINSIC constexpr static const T* ptr_cast(const U* ptr) noexcept { … }

Reinterprets a const pointer of type

U* as a const pointer of type T*

Fully qualified name: kfr::ptr_cast(const U *)

Declared at meta.hpp:1669

Function ptr_cast

function ptr_cast(U *, ptrdiff_t) meta

template <typename T, typename U>
KFR_INTRINSIC constexpr static T* ptr_cast(U* ptr, ptrdiff_t offset) noexcept { … }

Template parameters
T target pointee type
U source pointee type
Parameters
ptr base pointer
offset byte offset to apply

Fully qualified name: kfr::ptr_cast(U *, ptrdiff_t)

Declared at meta.hpp:1680

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.