All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
gears::concepts::NullablePointer< T > Struct Template Reference

Checks if a type is pointer-like. More...

Inherits gears::concepts::And< DefaultConstructible< T >, CopyConstructible< T >, CopyAssignable< T >, Destructible< T >, ContextualBool< T >, EqualityComparable< T, std::nullptr_t >, EqualityComparable< std::nullptr_t, T >, detail::is_np_assign< T > >.

Detailed Description

template<typename T>
struct gears::concepts::NullablePointer< T >

A Unary concept to check if a type is a pointer-like type that can be compared with nullptr_t.

A NullablePointer must meet the concepts of:

In addition to these concepts, the following expressions must be valid:

T x(const nullptr);
T y(nullptr);
T a = nullptr;
T b = const nullptr;
b = nullptr;
bool c = b != nullptr;
bool d = b == nullptr;
bool e = b;

Contrary to belief, std::unique_ptr does not meet this concept. std::shared_ptr however, does.

Template Parameters
TType to check

Definition at line 712 of file basic.hpp.