Functional

Functional#

2026-10-23

1 min read time

Applies to Linux and Windows

This page covers the functional extended API, including function objects that always return true or false, utilities for maximum and minimum computation, return-type proclamation, obtaining device addresses, and operator property traits.

Header

Content

Since

cuda::always_true

Function object that always returns true

libhipcxx 3.4

cuda::always_false

Function object that always returns false

libhipcxx 3.4

cuda::maximum

Returns the maximum of two values

libhipcxx 3.0

cuda::minimum

Returns the minimum of two values

libhipcxx 3.0

cuda::proclaim_return_type

Creates a forwarding call wrapper that proclaims return type

libhipcxx 2.7

cuda::proclaim_copyable_arguments

Creates a forwarding call wrapper that proclaims that arguments can be freely copied before an invocation of the wrapped callable

libhipcxx 3.0

cuda::get_device_address

Returns a valid address to a device object

libhipcxx 3.0

cuda::is_associative_v, cuda::is_commutative_v, cuda::identity_element(), cuda::absorbing_element()

Determines if an operator is associative for a type

libhipcxx 3.4