xtd 0.2.0
sizeof.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "size.hpp"
6
8namespace xtd {
10 namespace __s__ {
11 template<class type_t>
12 xtd::size __sizeof_() noexcept {
13 return sizeof(type_t);
14 }
15
16 template<class type_t>
17 xtd::size __sizeof_(const type_t& value) noexcept {
18 return sizeof(value);
19 }
20
21 inline xtd::size __sizeof_(const xtd::type& value) noexcept {
22 return sizeof(value);
23 }
24 }
26
43#define sizeof_ \
44 xtd::__s__::__sizeof_
45}
std::type_info type
Stores information about a type.
Definition type.hpp:23
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::size type.