stdgpu/functional.h Source File#
stdgpu Latest
Efficient STL-like Data Structures on the GPU
|
functional.h
Go to the documentation of this file.
#define STDGPU_HOST_DEVICE
Platform-independent host device function annotation.
Definition: platform.h:77
STDGPU_HOST_DEVICE auto operator()(T &&value) const -> decltype(~forward< T >(value))
Computes the bitwise NOT on the given value.
STDGPU_HOST_DEVICE T operator()(const T value) const
Computes the bitwise NOT on the given value.
STDGPU_HOST_DEVICE auto operator()(T &&lhs, U &&rhs) const -> decltype(forward< T >(lhs)==forward< U >(rhs))
Compares two values with each other.
STDGPU_HOST_DEVICE bool operator()(const T &lhs, const T &rhs) const
Compares two values with each other.
STDGPU_HOST_DEVICE std::size_t operator()(const bool &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const char16_t &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const char32_t &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const char &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const double &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const float &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const int &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const long &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const long double &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const long long &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const short &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const signed char &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const unsigned char &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const unsigned int &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const unsigned long &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const unsigned long long &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const unsigned short &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE std::size_t operator()(const wchar_t &key) const
Computes a hash value for the given key.
STDGPU_HOST_DEVICE T && operator()(T &&t) const noexcept
Returns the given value.
STDGPU_HOST_DEVICE auto operator()(T &&lhs, U &&rhs) const -> decltype(forward< T >(lhs) &&forward< U >(rhs))
Performs logical AND on the two values.
STDGPU_HOST_DEVICE bool operator()(const T &lhs, const T &rhs) const
Performs logical AND on the two values.
STDGPU_HOST_DEVICE auto operator()(T &&lhs, U &&rhs) const -> decltype(forward< T >(lhs)+forward< U >(rhs))
Adds the two values.
STDGPU_HOST_DEVICE T operator()(const T &lhs, const T &rhs) const
Adds the two values.
Generated by 1.9.6