IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
mem_info.hxx File Reference

Go to the source code of this file.

Namespaces

namespace  ice
 SPDX-License-Identifier: MIT.

Functions

constexpr auto ice::operator* (ice::meminfo info, ice::u64 count) noexcept -> ice::meminfo
 Multypling ice::meminfo by a scalar changes the size but keeps the alignment.
constexpr auto ice::operator+= (ice::meminfo &left, ice::meminfo right) noexcept -> ice::usize
 Adding two ice::meminfo values changes the size and and alignment.

Variables

template<typename T>
constexpr ice::usize ice::size_of = { sizeof(T) }
template<typename T>
constexpr ice::ualign ice::align_of = static_cast<ice::ualign>(alignof(T))
template<typename T>
constexpr ice::meminfo ice::meminfo_of = { ice::size_of<T>, ice::align_of<T> }