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.
Go to the source code of this file.
#include <memory>#include <type_traits>
This graph shows which files directly or indirectly include 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) |