StormByte 2.0.0
C++26 foundation of the StormByte suite
 
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:131
Smart pointer-like type: dereferenceable and exposes get().
Definition categories.hxx:147

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 StormByte::Type::Pointer does not match: it has no get().