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
 
 LabelView (std::string_view name, std::string_view value) noexcept
 
 operator bool () const
 
std::string_view Name () const
 
std::string_view Value () const
 

Constructor & Destructor Documentation

◆ LabelView()

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

Definition at line 22 of file labels.hpp.

Member Function Documentation

◆ Name()

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

Definition at line 27 of file labels.hpp.

◆ operator bool()

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

Definition at line 25 of file labels.hpp.

◆ Value()

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

Definition at line 28 of file labels.hpp.


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