acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
_impl.h
1
// Created by Camilo on 2021-01-12 ~10:00 <3TBS
2
#pragma once
3
4
5
template
<
typename
TYPE, std::
size_t
SIZE >
6
inline
array_reference < TYPE, SIZE > & zero(TYPE (& array)[ SIZE ] ) { ::zero((
void
*) array,
sizeof
(array));
return
array; }
7
8
9
template
<
typename
TYPE, std::
size_t
SIZE >
10
inline
bool
__is_zero(array_reference < TYPE, SIZE > & array) { return ::is_zero((
const
void
*) array,
sizeof
(array)); }
11
12
13
template
<
typename
TYPE >
14
inline
TYPE& zero(TYPE& type) { ::zero(&type,
sizeof
(type));
return
type; }
15
16
17
18
memory
_impl.h
Generated by
1.17.0