IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
mem_align.hxx File Reference
#include <ice/mem_size_types.hxx>
#include <type_traits>

Go to the source code of this file.

Classes

struct  ice::AlignResult< T >
struct  ice::AlignResult< T * >

Namespaces

namespace  ice
 SPDX-License-Identifier: MIT.

Functions

bool ice::is_aligned (void const *ptr, ice::ualign alignment) noexcept
bool ice::is_aligned (ice::u32 val, ice::ualign alignment) noexcept
template<typename T>
requires std::is_pointer_v<T> || std::is_same_v<T, ice::usize> || std::is_integral_v<T>
constexpr auto ice::align_to (T value, ice::ualign alignment) noexcept -> ice::AlignResult< T >