userver: userver/utils/shared_readable_ptr.hpp File 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
shared_readable_ptr.hpp File Reference

std::shared_ptr<const T> wrapper that makes sure that the pointer is stored before dereferencing. Protects from dangling references: More...

#include <memory>
#include <type_traits>
+ Include dependency graph for shared_readable_ptr.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  utils::SharedReadablePtr< T >
 std::shared_ptr<const T> wrapper that makes sure that the pointer is stored before dereferencing. Protects from dangling references: More...
 

Namespaces

namespace  utils
 Utilities.
 

Functions

template<typename T >
bool utils::operator== (const SharedReadablePtr< T > &ptr, std::nullptr_t)
 
template<typename T >
bool utils::operator== (std::nullptr_t, const SharedReadablePtr< T > &ptr)
 
template<typename T >
bool utils::operator!= (const SharedReadablePtr< T > &ptr, std::nullptr_t)
 
template<typename T >
bool utils::operator!= (std::nullptr_t, const SharedReadablePtr< T > &ptr)
 
template<typename T , typename... Args>
SharedReadablePtr< T > utils::MakeSharedReadable (Args &&... args)
 

Detailed Description

std::shared_ptr<const T> wrapper that makes sure that the pointer is stored before dereferencing. Protects from dangling references:

Definition in file shared_readable_ptr.hpp.