20 static T ret() {
return T{}; }
22 static bool isNul(T) {
return false; }
24 static constexpr nbool is_ptr =
false;
25 static constexpr nbool is_ref =
false;
26 static constexpr nbool is_like_ptr = is_ptr;
34 static nbool isNul(
const T& it) {
return true; }
37 static T*
dummy =
nullptr;
41 static constexpr nbool is_ptr =
false;
42 static constexpr nbool is_ref =
true;
43 static constexpr nbool is_like_ptr = is_ptr;
49 static bool isNul(
void) {
return false; }
51 static constexpr nbool is_ptr =
false;
52 static constexpr nbool is_ref =
false;
53 static constexpr nbool is_like_ptr = is_ptr;
61 static nbool isNul(
const T* it) {
return it ==
nullptr; }
63 static T* ret() {
return nullptr; }
65 static constexpr nbool is_ptr =
true;
66 static constexpr nbool is_ref =
false;
67 static constexpr nbool is_like_ptr = is_ptr;
74 static nbool isNul(
const void* it) {
return it ==
nullptr; }
76 static void* ret() {
return nullptr; }
78 static constexpr nbool is_ptr =
true;
79 static constexpr nbool is_ref =
false;
80 static constexpr nbool is_like_ptr = is_ptr;
Weak reference smart pointer with type-safe access
Definition tweak.hpp:16
Type trait utilities for template metaprogramming
Definition typeTrait.hpp:15