HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
hi::v1::dereferenceable Concept Reference

True if T is dereferenceable. More...

#include <hikogui/utility/concepts.hpp>

Concept definition

template<typename T>
concept hi::v1::dereferenceable = std::is_pointer_v<T> or requires (T &a)
{
a.operator*();
a.operator->();
}
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:378
True if T is dereferenceable.
Definition concepts.hpp:155

Detailed Description

True if T is dereferenceable.

Either it is a pointer, or it implements both operator*() and operator->().