| rcpputils
    master
    C++ API providing common utilities and data structures. | 
Type traits for validating if T is of type pointer or smart pointer. More...
#include <pointer_traits.hpp>
| Static Public Attributes | |
| static constexpr bool | value | 
| Indicates whether this object is a pointer or smart pointer.  More... | |
Type traits for validating if T is of type pointer or smart pointer.
In comparison to the existing type trait for pointer in the stdlib std::is_pointer<T> https://en.cppreference.com/w/cpp/types/is_pointer this trait is enhancing it for checking of smart pointer types as well. The valid pointer types are T*, std::shared_pointer<T> and std::unique_ptr<T>
Potential use cases are for static assert when passing a template parameter requiring this parameter to be of type pointer without specifying which type of pointer (raw, smart).
| 
 | staticconstexpr | 
Indicates whether this object is a pointer or smart pointer.
 1.8.17
 1.8.17