StormByte C++ Library 1.2.0
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
Loading...
Searching...
No Matches
StormByte::Type::SmartPointer Concept Reference

Smart pointer-like type: dereferenceable and exposes get(). More...

#include <StormByte/type_traits/categories.hxx>

Concept definition

template<typename T>
requires(std::remove_cvref_t<T> const& p) {
{ *p };
{ p.operator->() };
{ p.get() };
}
Raw (possibly cv-qualified) pointer type.
Definition categories.hxx:92
Smart pointer-like type: dereferenceable and exposes get().
Definition categories.hxx:108

Detailed Description

Smart pointer-like type: dereferenceable and exposes get().

Template Parameters
TType to test (cv/ref ignored).

Matches std::unique_ptr, std::shared_ptr and similar RAII wrappers without naming them directly. A raw Pointer does not match: it has no get().