20 virtual size_t size() const noexcept = 0;
31inline typename std::enable_if<std::is_base_of<z::
core::
sizable, T>::value>::type
size(const T &
object,
size_t &bytes) noexcept {
32 bytes =
object.size();
41inline typename std::enable_if<!std::is_base_of<z::core::sizable, T>::value>::type
size(
const T &
object,
size_t &bytes)
noexcept {
42 bytes =
sizeof(object);
An interface for getting an object's size.
Definition sizable.hpp:13
virtual size_t size() const noexcept=0
Get the size of the object in memory.
Section containing core functions and classes.
std::enable_if< std::is_base_of< z::core::sizable, T >::value >::type size(const T &object, size_t &bytes) noexcept
Get the size of a sizable object.
Definition sizable.hpp:31