#include <rll/concepts/ptr.h>
template <typename T>
smart_ptr concept
Smart pointer concept.
Template parameters | |
---|---|
T | Type to check. |
Will yield true
for any type that is a smart pointer.
Requirements:
- Can be dereferenced
- Can be converted to
bool
- Operator
operator->
must return a pointer of the same type as the dereferenced pointer - Method
get
must return the same type as the dereferenced pointer