WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
align.hpp File Reference
#include <cstdint>
#include "../config.hpp"
#include "assert.hpp"

Go to the source code of this file.

Namespaces

namespace  wpi
 Foonathan namespace.
 
namespace  wpi::memory
 Memory namespace.
 
namespace  wpi::memory::detail
 

Functions

constexpr bool wpi::memory::detail::is_valid_alignment (std::size_t alignment) noexcept
 
std::size_t wpi::memory::detail::align_offset (std::uintptr_t address, std::size_t alignment) noexcept
 
std::size_t wpi::memory::detail::align_offset (void *ptr, std::size_t alignment) noexcept
 
bool wpi::memory::detail::is_aligned (void *ptr, std::size_t alignment) noexcept
 
std::size_t wpi::memory::detail::alignment_for (std::size_t size) noexcept
 

Variables

constexpr std::size_t wpi::memory::detail::max_alignment = alignof(std::max_align_t)