<cuda/std/cstring>#

cuda::std::memset#

__host__ __device__
inline void* memset(void* dest, int ch, size_t count) noexcept;

See std::memset for the full documentation.

Preconditions

The following preconditions are only enabled with CCCL 3.2 or later:

  • dest is a valid pointer.

  • dest + count is a valid pointer.

A valid pointer is one that is not NULL and within the correct range if it belongs to the shared memory address space.


cuda::std::memcpy#

__host__ __device__
inline void* memcpy(void* dest, const void* src, size_t count) noexcept;

See std::memcpy for the full documentation.

Preconditions

The following preconditions are only enabled with the CUDA Toolkit 13.2 and CCCL 3.2 or later:

  • src is a valid pointer.

  • src + count is a valid pointer.

  • dest is a valid pointer.

  • dest + count is a valid pointer.

  • src and dest don’t overlap.

A valid pointer is one that is not NULL and within the correct range if it belongs to the shared memory address space.