C++ Library Extensions 2022.12.09
To help learn modern C++ programming
dynamic_array_new< 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_new (size_t size=1)
 
 dynamic_array_new (const dynamic_array_new &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_newoperator= (const dynamic_array_new &right_hand_side)
 
 dynamic_array_new (dynamic_array_new &&right_hand_side) noexcept
 
dynamic_array_newoperator= (dynamic_array_new &&right_hand_side) noexcept
 
 ~dynamic_array_new ()
 

Friends

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

Detailed Description

template<typename ElementType>
class dynamic_array_new< ElementType >

Definition at line 8 of file 041-array_new.cpp.

Member Typedef Documentation

◆ const_iterator

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

Definition at line 13 of file 041-array_new.cpp.

◆ iterator

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

Definition at line 12 of file 041-array_new.cpp.

Constructor & Destructor Documentation

◆ dynamic_array_new() [1/3]

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

Definition at line 81 of file 041-array_new.cpp.

Here is the call graph for this function:

◆ dynamic_array_new() [2/3]

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

Definition at line 99 of file 041-array_new.cpp.

◆ dynamic_array_new() [3/3]

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

Definition at line 189 of file 041-array_new.cpp.

◆ ~dynamic_array_new()

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

Definition at line 221 of file 041-array_new.cpp.

Member Function Documentation

◆ at() [1/2]

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

Definition at line 125 of file 041-array_new.cpp.

◆ at() [2/2]

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

Definition at line 133 of file 041-array_new.cpp.

◆ begin()

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

Definition at line 37 of file 041-array_new.cpp.

Here is the caller graph for this function:

◆ cbegin()

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

Definition at line 40 of file 041-array_new.cpp.

Here is the caller graph for this function:

◆ cend()

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

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

Here is the caller graph for this function:

◆ crbegin()

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

Definition at line 49 of file 041-array_new.cpp.

Here is the call graph for this function:

◆ crend()

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

Definition at line 50 of file 041-array_new.cpp.

Here is the call graph for this function:

◆ end()

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

Definition at line 38 of file 041-array_new.cpp.

Here is the caller graph for this function:

◆ operator&()

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

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

◆ operator=() [1/2]

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

Definition at line 143 of file 041-array_new.cpp.

◆ operator=() [2/2]

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

Definition at line 201 of file 041-array_new.cpp.

◆ operator[]() [1/2]

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

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

◆ operator[]() [2/2]

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

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

◆ rbegin()

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

Definition at line 46 of file 041-array_new.cpp.

Here is the call graph for this function:

◆ rend()

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

Definition at line 47 of file 041-array_new.cpp.

Here is the call graph for this function:

◆ resize()

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

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

◆ size()

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

Definition at line 53 of file 041-array_new.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_new< ElementType > &  da 
)
friend

Definition at line 228 of file 041-array_new.cpp.


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