Public Types |
Public Member Functions |
Private Member Functions |
Private Attributes |
List of all members
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 >
|
inlineconstexprnoexcept |
The default construtor.
◆ basic_initializer_list() [2/2]
template<typename T >
|
inlineconstexprprivate |
A private constructor.
- Parameters
-
A A pointer of the array for the list. l The number of elements in the array.
Member Function Documentation
◆ begin() [1/2]
template<typename T >
|
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 >
|
inlineconstexprnoexcept |
Get a pointer from the first element of the list.
- Parameters
-
pOther Initializer list.
- Returns
- The pointer from the first element of the list.
◆ end() [1/2]
template<typename T >
|
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 >
|
inlineconstexprnoexcept |
Get a pointer from the last element of the list.
- Parameters
-
pOther Initializer list.
- Returns
- The pointer from the last element of the list.
◆ size()
template<typename T >
|
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 >
|
private |
◆ m_szSize
template<typename T >
|
private |
The documentation for this class was generated from the following file: