DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
_init_list_with_indexer< T > Struct Template Reference

Helper wrapper allowing random-access bracket indexing over std::initializer_list. More...

#include <Utils.h>

Public Member Functions

 _init_list_with_indexer (const std::initializer_list< T > &_list)
 Constructs a wrapper over the provided initializer list.
operator[] (unsigned int index)
 Accesses the element at the specified index.

Public Attributes

const std::initializer_list< T > & list
 Reference to the wrapped initializer list.

Detailed Description

template<class T>
struct _init_list_with_indexer< T >

Helper wrapper allowing random-access bracket indexing over std::initializer_list.

Template Parameters
TThe element type in the initializer list.

Definition at line 8 of file Utils.h.

Constructor & Destructor Documentation

◆ _init_list_with_indexer()

template<class T>
_init_list_with_indexer< T >::_init_list_with_indexer ( const std::initializer_list< T > & _list)
inline

Constructs a wrapper over the provided initializer list.

Parameters
_listThe initializer list to wrap.

Definition at line 13 of file Utils.h.

References list.

Referenced by DotNetDupe::System::IO::Path::Combine().

Member Function Documentation

◆ operator[]()

template<class T>
T _init_list_with_indexer< T >::operator[] ( unsigned int index)
inline

Accesses the element at the specified index.

Parameters
indexZero-based element index.
Returns
The element at the specified position.

Definition at line 20 of file Utils.h.

References list.

Member Data Documentation

◆ list

template<class T>
const std::initializer_list<T>& _init_list_with_indexer< T >::list

Reference to the wrapped initializer list.

Definition at line 9 of file Utils.h.

Referenced by _init_list_with_indexer(), and operator[]().


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