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

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

Detailed Description

Non owning label name+value storage.

Definition at line 17 of file labels.hpp.

Public Member Functions

 LabelView (Label &&label)=delete
 
 LabelView (const Label &label) noexcept
 
constexpr LabelView (std::string_view name, std::string_view value) noexcept
 
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]

constexpr utils::statistics::LabelView::LabelView ( std::string_view name,
std::string_view value )
inlineconstexprnoexcept

Definition at line 22 of file labels.hpp.

◆ LabelView() [2/2]

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

Definition at line 25 of file labels.hpp.

Member Function Documentation

◆ Name()

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

Definition at line 31 of file labels.hpp.

◆ operator bool()

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

Definition at line 29 of file labels.hpp.

◆ Value()

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

Definition at line 32 of file labels.hpp.


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