Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
ptr.hpp File Reference
#include <cstddef>
#include <cstdint>
Include dependency graph for ptr.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  shambase
 namespace for basic c++ utilities

Functions

bool shambase::is_aligned (const void *ptr, size_t alignment) noexcept
 Check if a pointer is aligned with the given alignment.
template<class T>
bool shambase::is_aligned (const void *ptr) noexcept
 Check if a pointer is aligned with the given type.

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file ptr.hpp.