C++ Library Extensions 2022.12.09
To help learn modern C++ programming
tpf::types::unique_ptr_wrapper< N, T, deleter > Struct Template Reference

#include <tpf_types.hpp>

Public Member Functions

auto & ref () noexcept
 
auto & ref () const noexcept
 
template<typename IndexType >
T & operator[] (IndexType n) noexcept
 
template<typename IndexType >
const T & operator[] (IndexType n) const noexcept
 

Public Attributes

std::size_t size
 
std::unique_ptr< T[], deleter > uptr
 

Static Public Attributes

static constexpr auto Count = N
 

Detailed Description

template<std::size_t N, typename T, typename deleter = std::default_delete<T[]>>
struct tpf::types::unique_ptr_wrapper< N, T, deleter >

Definition at line 5148 of file tpf_types.hpp.

Member Function Documentation

◆ operator[]() [1/2]

template<std::size_t N, typename T , typename deleter = std::default_delete<T[]>>
template<typename IndexType >
const T & tpf::types::unique_ptr_wrapper< N, T, deleter >::operator[] ( IndexType  n) const
inlinenoexcept

Definition at line 5173 of file tpf_types.hpp.

◆ operator[]() [2/2]

template<std::size_t N, typename T , typename deleter = std::default_delete<T[]>>
template<typename IndexType >
T & tpf::types::unique_ptr_wrapper< N, T, deleter >::operator[] ( IndexType  n)
inlinenoexcept

Definition at line 5167 of file tpf_types.hpp.

◆ ref() [1/2]

template<std::size_t N, typename T , typename deleter = std::default_delete<T[]>>
auto & tpf::types::unique_ptr_wrapper< N, T, deleter >::ref ( ) const
inlinenoexcept

Definition at line 5161 of file tpf_types.hpp.

◆ ref() [2/2]

template<std::size_t N, typename T , typename deleter = std::default_delete<T[]>>
auto & tpf::types::unique_ptr_wrapper< N, T, deleter >::ref ( )
inlinenoexcept

Definition at line 5156 of file tpf_types.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ Count

template<std::size_t N, typename T , typename deleter = std::default_delete<T[]>>
constexpr auto tpf::types::unique_ptr_wrapper< N, T, deleter >::Count = N
staticconstexpr

Definition at line 5150 of file tpf_types.hpp.

◆ size

template<std::size_t N, typename T , typename deleter = std::default_delete<T[]>>
std::size_t tpf::types::unique_ptr_wrapper< N, T, deleter >::size

Definition at line 5152 of file tpf_types.hpp.

◆ uptr

template<std::size_t N, typename T , typename deleter = std::default_delete<T[]>>
std::unique_ptr<T[], deleter> tpf::types::unique_ptr_wrapper< N, T, deleter >::uptr

Definition at line 5154 of file tpf_types.hpp.


The documentation for this struct was generated from the following file: