libzypp: zypp::str::detail::RefStore< T > Struct Template Reference

libzypp 17.38.6

zypp::str::detail::RefStore< T > Struct Template Reference

Helper to store a reference or move rvalues inside. More...

`#include <zypp-core/base/LogTools.h>`

## Public Member Functions
constexpr | RefStore (T &&val_r)
| RefStore (const RefStore &)=delete
constexpr | RefStore (RefStore &&rhs)
T & | get ()
const T & | get () const

## Private Attributes
T | _val

## Detailed Description

template<typename T>
struct zypp::str::detail::RefStore< T >

Helper to store a reference or move rvalues inside.

Move rvalues inside.

Definition at line 54 of file LogTools.h.

## Constructor & Destructor Documentation

## ◆ RefStore() [1/3]

template<typename T>

zypp::str::detail::RefStore< T >::RefStore | ( | T && | val_r | ) |
| inlineconstexpr

Definition at line 56 of file LogTools.h.

## ◆ RefStore() [2/3]

template<typename T>

zypp::str::detail::RefStore< T >::RefStore | ( | const RefStore< T > & |  | ) |
| delete

## ◆ RefStore() [3/3]

template<typename T>

zypp::str::detail::RefStore< T >::RefStore | ( | RefStore< T > && | rhs | ) |
| inlineconstexpr

Definition at line 62 of file LogTools.h.

## Member Function Documentation

## ◆ get() [1/2]

template<typename T>

T & zypp::str::detail::RefStore< T >::get | ( |  | ) |
| inline

Definition at line 66 of file LogTools.h.

## ◆ get() [2/2]

template<typename T>

const T & zypp::str::detail::RefStore< T >::get | ( |  | ) | const
| inline

Definition at line 67 of file LogTools.h.

## Member Data Documentation

## ◆ _val

template<typename T>

T zypp::str::detail::RefStore< T >::_val
| private

Definition at line 70 of file LogTools.h.

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

- zypp-core/base/LogTools.h