userver: utils::statistics::LabelView Class Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
utils::statistics::LabelView Class Referencefinal

Your opinion will help to improve our service

Leave a feedback >

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

Detailed Description

Non owning label name+value storage.

Definition at line 19 of file labels.hpp.

Public Member Functions

 LabelView (Label &&label)=delete
 
 LabelView (const Label &label)
 
constexpr LabelView (std::string_view name, std::string_view value)
 
template<class T, std::enable_if_t< std::is_arithmetic_v< T > > * = nullptr>
constexpr LabelView (std::string_view, T)
 
constexpr operator bool () const
 
constexpr std::string_view Name () const
 
constexpr std::string_view Value () const
 

Constructor & Destructor Documentation

◆ LabelView() [1/2]

utils::statistics::LabelView::LabelView ( std::string_view name,
std::string_view value )
inlineconstexpr

Definition at line 24 of file labels.hpp.

◆ LabelView() [2/2]

template<class T, std::enable_if_t< std::is_arithmetic_v< T > > * = nullptr>
utils::statistics::LabelView::LabelView ( std::string_view ,
T  )
inlineconstexpr

Definition at line 29 of file labels.hpp.

Member Function Documentation

◆ Name()

std::string_view utils::statistics::LabelView::Name ( ) const
inlineconstexpr

Definition at line 35 of file labels.hpp.

◆ operator bool()

utils::statistics::LabelView::operator bool ( ) const
inlineexplicitconstexpr

Definition at line 33 of file labels.hpp.

◆ Value()

std::string_view utils::statistics::LabelView::Value ( ) const
inlineconstexpr

Definition at line 36 of file labels.hpp.


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