StormByte 3.0.0
C++26 foundation of the StormByte suite
Loading...
Searching...
No Matches
size.hxx File Reference

Host-width-stable count (uint64_t), implicit only to std::size_t. More...

#include <StormByte/safe/hash.hxx>
#include <StormByte/type_traits.hxx>
#include <StormByte/visibility.h>
#include <cassert>
#include <compare>
#include <cstddef>
#include <cstdint>
#include <limits>
#include <ostream>
#include <span>
#include <string>
#include <type_traits>
#include <utility>
Include dependency graph for size.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StormByte::Size
 Count of abstract units (uint64_t storage). More...
struct  StormByte::Safe::Hash< StormByte::Size >
class  std::numeric_limits< StormByte::Size >
 Limits of StormByte::Size. More...
struct  std::hash< StormByte::Size >

Namespaces

namespace  StormByte
 Root namespace of the StormByte suite.
namespace  StormByte::Safe
 Owned values that cross a DLL without the caller's CRT.

Functions

template<Type::Integral T>
constexpr bool StormByte::operator== (Size lhs, T rhs)
 Mixed equality.
template<Type::Integral T>
constexpr bool StormByte::operator== (T lhs, Size rhs)
 Mixed equality.
template<Type::Integral T>
constexpr Size StormByte::operator+ (Size lhs, T rhs)
 Mixed sum.
template<Type::Integral T>
constexpr Size StormByte::operator+ (T lhs, Size rhs)
 Mixed sum.
template<Type::Integral T>
constexpr Size StormByte::operator- (Size lhs, T rhs)
 Mixed difference.
template<Type::Integral T>
constexpr Size StormByte::operator- (T lhs, Size rhs)
 Mixed difference.
template<Type::Integral T>
constexpr Size StormByte::operator* (Size lhs, T rhs)
 Mixed product.
template<Type::Integral T>
constexpr Size StormByte::operator* (T lhs, Size rhs)
 Mixed product.
template<Type::Integral T>
constexpr Size StormByte::operator/ (Size lhs, T rhs)
 Mixed quotient.
template<Type::Integral T>
constexpr Size StormByte::operator/ (T lhs, Size rhs)
 Mixed quotient.
template<Type::Integral T>
constexpr Size StormByte::operator% (Size lhs, T rhs)
 Mixed remainder.
template<Type::Integral T>
constexpr Size StormByte::operator% (T lhs, Size rhs)
 Mixed remainder.
std::ostream & StormByte::operator<< (std::ostream &stream, Size size)
 Writes the decimal count.

Detailed Description

Host-width-stable count (uint64_t), implicit only to std::size_t.