18 static T ret() {
return T{}; }
20 static bool isNul(T) {
return false; }
22 static constexpr nbool is_ptr =
false;
23 static constexpr nbool is_ref =
false;
24 static constexpr nbool is_like_ptr = is_ptr;
32 static nbool isNul(
const T& it) {
return true; }
35 static T* dummy =
nullptr;
39 static constexpr nbool is_ptr =
false;
40 static constexpr nbool is_ref =
true;
41 static constexpr nbool is_like_ptr = is_ptr;
47 static bool isNul(
void) {
return false; }
49 static constexpr nbool is_ptr =
false;
50 static constexpr nbool is_ref =
false;
51 static constexpr nbool is_like_ptr = is_ptr;
59 static nbool isNul(
const T* it) {
return it ==
nullptr; }
61 static T* ret() {
return nullptr; }
63 static constexpr nbool is_ptr =
true;
64 static constexpr nbool is_ref =
false;
65 static constexpr nbool is_like_ptr = is_ptr;
72 static nbool isNul(
const void* it) {
return it ==
nullptr; }
74 static void* ret() {
return nullptr; }
76 static constexpr nbool is_ptr =
true;
77 static constexpr nbool is_ref =
false;
78 static constexpr nbool is_like_ptr = is_ptr;
Type trait utilities for template metaprogramming.
Definition: typeTrait.hpp:13