C++ Library Extensions 2022.12.09
To help learn modern C++ programming
dynamic_array_malloc< ElementType > Class Template Reference

Public Types

using iterator = ElementType *
 
using const_iterator = const ElementType *
 

Public Member Functions

iterator begin ()
 
iterator end ()
 
const_iterator cbegin ()
 
const_iterator cend ()
 
auto rbegin ()
 
auto rend ()
 
auto crbegin ()
 
auto crend ()
 
size_t size () const
 
void resize (size_t count)
 
 dynamic_array_malloc (size_t size=1)
 
 dynamic_array_malloc (const dynamic_array_malloc &right_hand_side)
 
ElementType * operator& ()
 
ElementType & operator[] (size_t index)
 
const ElementType & operator[] (size_t index) const
 
ElementType & at (size_t index)
 
const ElementType & at (size_t index) const
 
dynamic_array_mallocoperator= (const dynamic_array_malloc &right_hand_side)
 
 dynamic_array_malloc (dynamic_array_malloc &&right_hand_side) noexcept
 
dynamic_array_mallocoperator= (dynamic_array_malloc &&right_hand_side) noexcept
 
 ~dynamic_array_malloc ()
 

Friends

std::ostream & operator<< (std::ostream &os, const dynamic_array_malloc &da)
 

Detailed Description

template<typename ElementType>
class dynamic_array_malloc< ElementType >

Definition at line 10 of file 041-array_malloc.cpp.

Member Typedef Documentation

◆ const_iterator

template<typename ElementType >
using dynamic_array_malloc< ElementType >::const_iterator = const ElementType*

Definition at line 15 of file 041-array_malloc.cpp.

◆ iterator

template<typename ElementType >
using dynamic_array_malloc< ElementType >::iterator = ElementType*

Definition at line 14 of file 041-array_malloc.cpp.

Constructor & Destructor Documentation

◆ dynamic_array_malloc() [1/3]

template<typename ElementType >
dynamic_array_malloc< ElementType >::dynamic_array_malloc ( size_t  size = 1)
inlineexplicit

Definition at line 86 of file 041-array_malloc.cpp.

Here is the call graph for this function:

◆ dynamic_array_malloc() [2/3]

template<typename ElementType >
dynamic_array_malloc< ElementType >::dynamic_array_malloc ( const dynamic_array_malloc< ElementType > &  right_hand_side)
inline

Definition at line 97 of file 041-array_malloc.cpp.

◆ dynamic_array_malloc() [3/3]

template<typename ElementType >
dynamic_array_malloc< ElementType >::dynamic_array_malloc ( dynamic_array_malloc< ElementType > &&  right_hand_side)
inlinenoexcept

Definition at line 187 of file 041-array_malloc.cpp.

◆ ~dynamic_array_malloc()

template<typename ElementType >
dynamic_array_malloc< ElementType >::~dynamic_array_malloc ( )
inline

Definition at line 219 of file 041-array_malloc.cpp.

Member Function Documentation

◆ at() [1/2]

template<typename ElementType >
ElementType & dynamic_array_malloc< ElementType >::at ( size_t  index)
inline

Definition at line 123 of file 041-array_malloc.cpp.

◆ at() [2/2]

template<typename ElementType >
const ElementType & dynamic_array_malloc< ElementType >::at ( size_t  index) const
inline

Definition at line 131 of file 041-array_malloc.cpp.

◆ begin()

template<typename ElementType >
iterator dynamic_array_malloc< ElementType >::begin ( )
inline

Definition at line 42 of file 041-array_malloc.cpp.

Here is the caller graph for this function:

◆ cbegin()

template<typename ElementType >
const_iterator dynamic_array_malloc< ElementType >::cbegin ( )
inline

Definition at line 45 of file 041-array_malloc.cpp.

Here is the caller graph for this function:

◆ cend()

template<typename ElementType >
const_iterator dynamic_array_malloc< ElementType >::cend ( )
inline

Definition at line 48 of file 041-array_malloc.cpp.

Here is the caller graph for this function:

◆ crbegin()

template<typename ElementType >
auto dynamic_array_malloc< ElementType >::crbegin ( )
inline

Definition at line 54 of file 041-array_malloc.cpp.

Here is the call graph for this function:

◆ crend()

template<typename ElementType >
auto dynamic_array_malloc< ElementType >::crend ( )
inline

Definition at line 55 of file 041-array_malloc.cpp.

Here is the call graph for this function:

◆ end()

template<typename ElementType >
iterator dynamic_array_malloc< ElementType >::end ( )
inline

Definition at line 43 of file 041-array_malloc.cpp.

Here is the caller graph for this function:

◆ operator&()

template<typename ElementType >
ElementType * dynamic_array_malloc< ElementType >::operator& ( )
inline

Definition at line 117 of file 041-array_malloc.cpp.

◆ operator=() [1/2]

template<typename ElementType >
dynamic_array_malloc & dynamic_array_malloc< ElementType >::operator= ( const dynamic_array_malloc< ElementType > &  right_hand_side)
inline

Definition at line 141 of file 041-array_malloc.cpp.

◆ operator=() [2/2]

template<typename ElementType >
dynamic_array_malloc & dynamic_array_malloc< ElementType >::operator= ( dynamic_array_malloc< ElementType > &&  right_hand_side)
inlinenoexcept

Definition at line 199 of file 041-array_malloc.cpp.

◆ operator[]() [1/2]

template<typename ElementType >
ElementType & dynamic_array_malloc< ElementType >::operator[] ( size_t  index)
inline

Definition at line 119 of file 041-array_malloc.cpp.

◆ operator[]() [2/2]

template<typename ElementType >
const ElementType & dynamic_array_malloc< ElementType >::operator[] ( size_t  index) const
inline

Definition at line 121 of file 041-array_malloc.cpp.

◆ rbegin()

template<typename ElementType >
auto dynamic_array_malloc< ElementType >::rbegin ( )
inline

Definition at line 51 of file 041-array_malloc.cpp.

Here is the call graph for this function:

◆ rend()

template<typename ElementType >
auto dynamic_array_malloc< ElementType >::rend ( )
inline

Definition at line 52 of file 041-array_malloc.cpp.

Here is the call graph for this function:

◆ resize()

template<typename ElementType >
void dynamic_array_malloc< ElementType >::resize ( size_t  count)
inline

Definition at line 60 of file 041-array_malloc.cpp.

◆ size()

template<typename ElementType >
size_t dynamic_array_malloc< ElementType >::size ( ) const
inline

Definition at line 58 of file 041-array_malloc.cpp.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

template<typename ElementType >
std::ostream & operator<< ( std::ostream &  os,
const dynamic_array_malloc< ElementType > &  da 
)
friend

Definition at line 224 of file 041-array_malloc.cpp.


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