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

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

Detailed Description

Label name+value storage.

Definition at line 43 of file labels.hpp.

Public Member Functions

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

Constructor & Destructor Documentation

◆ Label()

template<class T , std::enable_if_t< std::is_arithmetic_v< T > > * = nullptr>
utils::statistics::Label::Label ( std::string ,
T  )
inline

Definition at line 50 of file labels.hpp.

Member Function Documentation

◆ Name()

const std::string & utils::statistics::Label::Name ( ) const
inline

Definition at line 57 of file labels.hpp.

◆ operator bool()

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

Definition at line 54 of file labels.hpp.

◆ operator LabelView()

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

Definition at line 55 of file labels.hpp.

◆ Value() [1/3]

std::string & utils::statistics::Label::Value ( ) &
inline

Definition at line 59 of file labels.hpp.

◆ Value() [2/3]

std::string && utils::statistics::Label::Value ( ) &&
inline

Definition at line 60 of file labels.hpp.

◆ Value() [3/3]

const std::string & utils::statistics::Label::Value ( ) const &
inline

Definition at line 58 of file labels.hpp.


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