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