vecmem 1.18.0
Loading...
Searching...
No Matches
is_aligned.hpp
1/*
2 * VecMem project, part of the ACTS project (R&D line)
3 *
4 * (c) 2022 CERN for the benefit of the ACTS project
5 *
6 * Mozilla Public License Version 2.0
7 */
8
9// Local include(s).
10#include "vecmem/utils/types.hpp"
11#include "vecmem/vecmem_core_export.hpp"
12
13// System include(s).
14#include <cstddef>
15
16namespace vecmem {
17namespace details {
18
28VECMEM_HOST
29bool VECMEM_CORE_EXPORT is_aligned(void* ptr, std::size_t alignment);
30
31} // namespace details
32} // namespace vecmem
VECMEM_HOST bool VECMEM_CORE_EXPORT is_aligned(void *ptr, std::size_t alignment)
Helper function checking if a given pointer has a given alignment.
Definition is_aligned.cpp:19
Main namespace for the vecmem classes/functions.
Definition atomic_ref.hpp:16