mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-18 09:04:49 -04:00
is_pointer traits
This commit is contained in:
parent
0d567e5332
commit
13da670496
@ -158,6 +158,24 @@ struct has_trivial_assign {
|
||||
static constexpr const bool value = __has_trivial_assign(T);
|
||||
};
|
||||
|
||||
/* is_pointer */
|
||||
|
||||
/*!
|
||||
* \brief Traits to test if given type is a pointer type
|
||||
*/
|
||||
template <typename T>
|
||||
struct is_pointer {
|
||||
static constexpr const bool value = false;
|
||||
};
|
||||
|
||||
/*!
|
||||
* \copdoc is_pointer
|
||||
*/
|
||||
template <typename T>
|
||||
struct is_pointer<T*>{
|
||||
static constexpr const bool value = true;
|
||||
};
|
||||
|
||||
/* is_reference */
|
||||
|
||||
template <typename T>
|
||||
|
Loading…
x
Reference in New Issue
Block a user