Callable object reading single value from memory.
Required header: #include <eve/function/read.hpp>
operator*
based interface used in the standard has notorious issues with proxy references. To prevent those issues when dealing with complex, potentially SIMD-aware iterators, eve::read
is to be used.
Members Functions
Member | Effect |
operator() | Performs a single read from memory |
template<typename Ptr> auto operator()(Ptr p) const noexcept
Parameters
ptr
: Memory to read from.
Return value
Returns a signle value read at the memory location specified by ptr
. If ptr
is equivalent to nullptr
, the behavior is undefined.