Utility Library

Utility Library#

2026-10-07

1 min read time

Applies to Linux and Windows

This page covers the utility library headers available in libhipcxx, including bitset, expected, functional, memory, optional, tuple, type_traits, utility, variant, and version.

Any Standard C++ header not listed below is omitted. Some of the Standard C++ facilities in this header are omitted, see the information about the individual features for details.

Header

Content

Availability

<cuda/std/bitset>

Fixed-size sequence of bits

libhipcxx 2.7

<cuda/std/expected>

Optional value with error channel

libhipcxx 2.7

<cuda/std/functional>

Function objects and function wrappers

libhipcxx 2.7

<cuda/std/memory>

Low-level memory management utilities

libhipcxx 2.7

<cuda/std/optional>

Optional value

libhipcxx 2.7

<cuda/std/tuple>

Fixed-sized heterogeneous container

libhipcxx 2.7

<cuda/std/type_traits>

Compile-time type introspection

libhipcxx 2.7

<cuda/std/utility>

Various utility components

libhipcxx 2.7

<cuda/std/variant>

Type safe union type

libhipcxx 2.7

<cuda/std/version>

Compile-time version information and feature test macros

libhipcxx 2.7