userver: utils::statistics::Label Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
utils::statistics::Label Class Referencefinal

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

Detailed Description

Label name+value storage.

Definition at line 39 of file labels.hpp.

Public Member Functions

 Label (LabelView view)
 
 Label (std::string name, std::string value)
 
 operator bool () const
 
 operator LabelView () const
 
const std::string & Name () const
 
const std::string & Value () const &
 
std::string & Value () &
 
std::string && Value () &&
 

Member Function Documentation

◆ Name()

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

Definition at line 48 of file labels.hpp.

◆ operator bool()

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

Definition at line 45 of file labels.hpp.

◆ operator LabelView()

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

Definition at line 46 of file labels.hpp.

◆ Value() [1/3]

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

Definition at line 50 of file labels.hpp.

◆ Value() [2/3]

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

Definition at line 51 of file labels.hpp.

◆ Value() [3/3]

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

Definition at line 49 of file labels.hpp.


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