xtd 0.2.0
Loading...
Searching...
No Matches
size_of.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "size.hpp"
6
8namespace xtd {
20 template<class type_t>
21 auto size_of() noexcept -> xtd::size {return sizeof(type_t);}
33 xtd::size size_of(const auto& value) noexcept {return sizeof(value);}
45 inline xtd::size size_of(const xtd::type& value) noexcept {return sizeof(value);}
46}
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
auto size_of() noexcept -> xtd::size
Used to obtain the size in bytes of the object representation of type or expression.
Definition size_of.hpp:21
Contains xtd::size type.