MetroCollect  2.3.4
MetroCollect::MetricsStatsArray< T >::IndexedValue Struct Reference

Small struct to store an index of a value in a container and a reference to its value. More...

#include <MetricsStatsArray.h>

Public Member Functions

 IndexedValue (size_t anIndex, T &aValue)
 Construct a new Indexed Value object. More...
 

Public Attributes

size_t index
 Index of the value in the container. More...
 
T & value
 Reference to the value. More...
 

Detailed Description

template<typename T>
struct MetroCollect::MetricsStatsArray< T >::IndexedValue

Small struct to store an index of a value in a container and a reference to its value.

Definition at line 41 of file MetricsStatsArray.h.

Constructor & Destructor Documentation

◆ IndexedValue()

template<typename T>
MetroCollect::MetricsStatsArray< T >::IndexedValue::IndexedValue ( size_t  anIndex,
T &  aValue 
)
inline

Construct a new Indexed Value object.

Parameters
anIndexindex of the value in the container
aValuereference to the value

Definition at line 51 of file MetricsStatsArray.h.

Member Data Documentation

◆ index

template<typename T>
size_t MetroCollect::MetricsStatsArray< T >::IndexedValue::index

Index of the value in the container.

Definition at line 42 of file MetricsStatsArray.h.

◆ value

template<typename T>
T& MetroCollect::MetricsStatsArray< T >::IndexedValue::value

Reference to the value.

Definition at line 43 of file MetricsStatsArray.h.


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