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 , std::enable_if_t< std::is_same_v< decltype(*(std::declval< const Container & >().data()+std::declval< const Container & >().size())), const LabelView & > , int >
 LabelsSpan (const Container &cont) 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 , std::enable_if_t< std::is_same_v< decltype(*(std::declval< const Container & >().data()+std::declval< const Container & >().size())), const LabelView & > , int >
utils::statistics::LabelsSpan::LabelsSpan ( const Container & cont)
inlinenoexcept

Definition at line 79 of file labels.hpp.

Member Function Documentation

◆ begin()

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

Definition at line 82 of file labels.hpp.

◆ empty()

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

Definition at line 85 of file labels.hpp.

◆ end()

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

Definition at line 83 of file labels.hpp.

◆ size()

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

Definition at line 84 of file labels.hpp.


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