mn::basic_initializer_list< T > Class Template Reference

#include <mn_initializer_list.hpp>

Public Types

using value_type = T
 
using reference = T &
 
using const_reference = const T &
 
using pointer = T *
 
using const_pointer = const T *
 
using size_type = mn::size_t
 
using iterator = T *
 
using const_iterator = const T *
 

Public Member Functions

constexpr basic_initializer_list () noexcept
 The default construtor. More...
 
constexpr size_type size () const noexcept
 Get the number of elements in the list. More...
 
constexpr const_iterator begin () const noexcept
 Get a pointer from the first element of the list. More...
 
constexpr const_iterator end () const noexcept
 Get a pointer from the last element of the list. More...
 
template<class U >
constexpr const U * begin (basic_initializer_list< U > pOther) noexcept
 Get a pointer from the first element of the list. More...
 
template<class U >
constexpr const U * end (basic_initializer_list< U > pOther) noexcept
 Get a pointer from the last element of the list. More...
 

Private Member Functions

constexpr basic_initializer_list (const_pointer a, size_type l)
 A private constructor. More...
 

Private Attributes

pointer m_pArray
 
size_type m_szSize
 

Member Typedef Documentation

◆ const_iterator

template<typename T >
using mn::basic_initializer_list< T >::const_iterator = const T*

◆ const_pointer

template<typename T >
using mn::basic_initializer_list< T >::const_pointer = const T*

◆ const_reference

template<typename T >
using mn::basic_initializer_list< T >::const_reference = const T&

◆ iterator

template<typename T >
using mn::basic_initializer_list< T >::iterator = T*

◆ pointer

template<typename T >
using mn::basic_initializer_list< T >::pointer = T*

◆ reference

template<typename T >
using mn::basic_initializer_list< T >::reference = T&

◆ size_type

template<typename T >
using mn::basic_initializer_list< T >::size_type = mn::size_t

◆ value_type

template<typename T >
using mn::basic_initializer_list< T >::value_type = T

Constructor & Destructor Documentation

◆ basic_initializer_list() [1/2]

template<typename T >
constexpr mn::basic_initializer_list< T >::basic_initializer_list ( )
inlineconstexprnoexcept

The default construtor.

◆ basic_initializer_list() [2/2]

template<typename T >
constexpr mn::basic_initializer_list< T >::basic_initializer_list ( const_pointer  a,
size_type  l 
)
inlineconstexprprivate

A private constructor.

Parameters
AA pointer of the array for the list.
lThe number of elements in the array.

Member Function Documentation

◆ begin() [1/2]

template<typename T >
constexpr const_iterator mn::basic_initializer_list< T >::begin ( ) const
inlineconstexprnoexcept

Get a pointer from the first element of the list.

Returns
The pointer from the first element of the list.

◆ begin() [2/2]

template<typename T >
template<class U >
constexpr const U* mn::basic_initializer_list< T >::begin ( basic_initializer_list< U >  pOther)
inlineconstexprnoexcept

Get a pointer from the first element of the list.

Parameters
pOtherInitializer list.
Returns
The pointer from the first element of the list.

◆ end() [1/2]

template<typename T >
constexpr const_iterator mn::basic_initializer_list< T >::end ( ) const
inlineconstexprnoexcept

Get a pointer from the last element of the list.

Returns
The pointer from the last element of the list.

◆ end() [2/2]

template<typename T >
template<class U >
constexpr const U* mn::basic_initializer_list< T >::end ( basic_initializer_list< U >  pOther)
inlineconstexprnoexcept

Get a pointer from the last element of the list.

Parameters
pOtherInitializer list.
Returns
The pointer from the last element of the list.

◆ size()

template<typename T >
constexpr size_type mn::basic_initializer_list< T >::size ( ) const
inlineconstexprnoexcept

Get the number of elements in the list.

Returns
The number of elements in the list.

Member Data Documentation

◆ m_pArray

template<typename T >
pointer mn::basic_initializer_list< T >::m_pArray
private

◆ m_szSize

template<typename T >
size_type mn::basic_initializer_list< T >::m_szSize
private

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