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 Namespace Reference

Namespaces

namespace  detail

Functions

template<class T, typename std::enable_if<(!std::is_function< T >::value), bool >::type = true, typename std::enable_if<(!std::is_void< T >::value), bool >::type = true>
QUICKCPPLIB_NODISCARD constexpr T * launder (T *p) noexcept
 std::launder<T> from C++ 17, or an emulation
template<class T, typename std::enable_if<(detail::_is_implicit_lifetime< T >::value), bool >::type = true>
QUICKCPPLIB_NODISCARD constexpr auto * start_lifetime_as (void *p) noexcept
 std::start_lifetime_as<T> from C++ 23, or an emulation
template<class T, typename std::enable_if<(detail::_is_implicit_lifetime< T >::value), bool >::type = true>
QUICKCPPLIB_NODISCARD constexpr auto * start_lifetime_as (const void *p) noexcept
 std::start_lifetime_as<T> from C++ 23, or an emulation
template<class T, typename std::enable_if<(detail::_is_implicit_lifetime< T >::value), bool >::type = true>
QUICKCPPLIB_NODISCARD constexpr auto * start_lifetime_as_array (void *p, size_t n) noexcept
 std::start_lifetime_as_array<T> from C++ 23, or an emulation
template<class T, typename std::enable_if<(detail::_is_implicit_lifetime< T >::value), bool >::type = true>
QUICKCPPLIB_NODISCARD constexpr auto * start_lifetime_as_array (const void *p, size_t n) noexcept
 std::start_lifetime_as_array<T> from C++ 23, or an emulation

Function Documentation

◆ launder()

template<class T, typename std::enable_if<(!std::is_function< T >::value), bool >::type = true, typename std::enable_if<(!std::is_void< T >::value), bool >::type = true>
QUICKCPPLIB_NODISCARD constexpr T * quickcpplib::_xxx::start_lifetime_as::launder ( T * p)
inlineconstexprnoexcept

std::launder<T> from C++ 17, or an emulation

101 {
102 return detail::_launder(p);
103 }
constexpr T * _launder(T *p) noexcept
Definition start_lifetime_as.hpp:61

◆ start_lifetime_as() [1/2]

template<class T, typename std::enable_if<(detail::_is_implicit_lifetime< T >::value), bool >::type = true>
QUICKCPPLIB_NODISCARD constexpr auto * quickcpplib::_xxx::start_lifetime_as::start_lifetime_as ( void * p)
inlineconstexprnoexcept

std::start_lifetime_as<T> from C++ 23, or an emulation

108 {
109 return detail::_start_lifetime_as<T>()(p);
110 }

◆ start_lifetime_as() [2/2]

template<class T, typename std::enable_if<(detail::_is_implicit_lifetime< T >::value), bool >::type = true>
QUICKCPPLIB_NODISCARD constexpr auto * quickcpplib::_xxx::start_lifetime_as::start_lifetime_as ( const void * p)
inlineconstexprnoexcept

std::start_lifetime_as<T> from C++ 23, or an emulation

115 {
116 return detail::_start_lifetime_as<T>()(p);
117 }

◆ start_lifetime_as_array() [1/2]

template<class T, typename std::enable_if<(detail::_is_implicit_lifetime< T >::value), bool >::type = true>
QUICKCPPLIB_NODISCARD constexpr auto * quickcpplib::_xxx::start_lifetime_as::start_lifetime_as_array ( void * p,
size_t n )
inlineconstexprnoexcept

std::start_lifetime_as_array<T> from C++ 23, or an emulation

122 {
123 return detail::_start_lifetime_as<T>()(p, n);
124 }

◆ start_lifetime_as_array() [2/2]

template<class T, typename std::enable_if<(detail::_is_implicit_lifetime< T >::value), bool >::type = true>
QUICKCPPLIB_NODISCARD constexpr auto * quickcpplib::_xxx::start_lifetime_as::start_lifetime_as_array ( const void * p,
size_t n )
inlineconstexprnoexcept

std::start_lifetime_as_array<T> from C++ 23, or an emulation

129 {
130 return detail::_start_lifetime_as<T>()(p, n);
131 }