xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
size_of.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
usize.hpp
"
6
8
namespace
xtd
{
20
template
<
typename
type_t>
21
[[nodiscard]]
auto
size_of
() noexcept ->
xtd
::
usize
{
return
sizeof
(type_t);}
33
[[nodiscard]]
auto
size_of
(
const
auto
& value)
noexcept
->
xtd::usize
{
return
sizeof
(value);}
45
[[nodiscard]]
inline
auto
size_of
(
const
xtd::type
& value)
noexcept
->
xtd::usize
{
return
sizeof
(value);}
46
}
xtd::type
std::type_info type
Stores information about a type.
Definition
type.hpp:23
xtd::usize
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition
usize.hpp:22
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::size_of
auto size_of() noexcept -> xtd::usize
Used to obtain the size in bytes of the object representation of type or expression.
Definition
size_of.hpp:21
usize.hpp
Contains xtd::usize type.
Generated on
for xtd by
Gammasoft
. All rights reserved.