QuickCppLib 0.10
Eliminate all the tedious hassle when making state-of-the-art C++ 14 - 23 libraries!
Loading...
Searching...
No Matches
quickcpplib::_xxx::start_lifetime_as::detail Namespace Reference

Classes

struct  _start_lifetime_as
struct  _is_implicit_lifetime

Functions

template<class T>
constexpr T * launder (T *p,...) noexcept
template<typename T>
T * start_lifetime_as (void *p,...) noexcept
template<typename T>
const T * start_lifetime_as (const void *p,...) noexcept
template<typename T>
T * start_lifetime_as_array (void *p, size_t,...) noexcept
template<typename T>
const T * start_lifetime_as_array (const void *p, size_t,...) noexcept
template<class T>
constexpr T * _launder (T *p) noexcept

Function Documentation

◆ launder()

template<class T>
T * quickcpplib::_xxx::start_lifetime_as::detail::launder ( T * p,
... )
inlineconstexprnoexcept
41 {
42 return p;
43 }

◆ start_lifetime_as() [1/2]

template<typename T>
T * quickcpplib::_xxx::start_lifetime_as::detail::start_lifetime_as ( void * p,
... )
inlinenoexcept
45 {
46 return reinterpret_cast<T *>(p);
47 }

◆ start_lifetime_as() [2/2]

template<typename T>
const T * quickcpplib::_xxx::start_lifetime_as::detail::start_lifetime_as ( const void * p,
... )
inlinenoexcept
49 {
50 return reinterpret_cast<const T *>(p);
51 }

◆ start_lifetime_as_array() [1/2]

template<typename T>
T * quickcpplib::_xxx::start_lifetime_as::detail::start_lifetime_as_array ( void * p,
size_t ,
... )
inlinenoexcept
53 {
54 return reinterpret_cast<T *>(p);
55 }

◆ start_lifetime_as_array() [2/2]

template<typename T>
const T * quickcpplib::_xxx::start_lifetime_as::detail::start_lifetime_as_array ( const void * p,
size_t ,
... )
inlinenoexcept
57 {
58 return reinterpret_cast<const T *>(p);
59 }

◆ _launder()

template<class T>
T * quickcpplib::_xxx::start_lifetime_as::detail::_launder ( T * p)
inlineconstexprnoexcept
62 {
63 return launder<T>(p);
64 }
constexpr T * launder(T *p,...) noexcept
Definition start_lifetime_as.hpp:40