userver: utils::statistics::LabelsSpan Class Reference
Loading...
Searching...
No Matches
utils::statistics::LabelsSpan Class Referencefinal

#include <userver/utils/statistics/labels.hpp>

Detailed Description

View over a continuous range of LabelView.

Definition at line 62 of file labels.hpp.

Public Types

using iterator = const LabelView*
 
using const_iterator = const LabelView*
 

Public Member Functions

 LabelsSpan (const LabelView *begin, const LabelView *end) noexcept
 
 LabelsSpan (std::initializer_list< LabelView > il) noexcept
 
template<class Container >
 LabelsSpan (const Container &cont, std::enable_if_t< std::is_same_v< decltype(*(cont.data()+cont.size())), const LabelView & > > *=nullptr) noexcept
 
const LabelViewbegin () const noexcept
 
const LabelViewend () const noexcept
 
std::size_t size () const noexcept
 
bool empty () const noexcept
 

Member Typedef Documentation

◆ const_iterator

◆ iterator

Constructor & Destructor Documentation

◆ LabelsSpan() [1/2]

utils::statistics::LabelsSpan::LabelsSpan ( std::initializer_list< LabelView > il)
inlinenoexcept

Definition at line 69 of file labels.hpp.

◆ LabelsSpan() [2/2]

template<class Container >
utils::statistics::LabelsSpan::LabelsSpan ( const Container & cont,
std::enable_if_t< std::is_same_v< decltype(*(cont.data()+cont.size())), const LabelView & > > * = nullptr )
inlineexplicitnoexcept

Definition at line 73 of file labels.hpp.

Member Function Documentation

◆ begin()

const LabelView * utils::statistics::LabelsSpan::begin ( ) const
inlinenoexcept

Definition at line 79 of file labels.hpp.

◆ empty()

bool utils::statistics::LabelsSpan::empty ( ) const
inlinenoexcept

Definition at line 82 of file labels.hpp.

◆ end()

const LabelView * utils::statistics::LabelsSpan::end ( ) const
inlinenoexcept

Definition at line 80 of file labels.hpp.

◆ size()

std::size_t utils::statistics::LabelsSpan::size ( ) const
inlinenoexcept

Definition at line 81 of file labels.hpp.


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