FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
common.hpp File Reference

Common utility functions and helpers used throughout FlatImage. More...

#include <format>
#include <cstdlib>
#include "std/string.hpp"
Include dependency graph for common.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  anonymous_namespace{common.hpp}::format_args< Args >
 Helper struct for converting arguments to format-compatible strings. More...
 

Functions

constexpr decltype(auto) operator""_kib (unsigned long long value) noexcept
 User-defined literal operator for kibibytes (KiB)
 
constexpr decltype(auto) operator""_mib (unsigned long long value) noexcept
 User-defined literal operator for mebibytes (MiB)
 

Detailed Description

Common utility functions and helpers used throughout FlatImage.

Author
Ruan Formigoni

This file provides common utilities including:

  • Format argument conversion helpers for string formatting
  • Binary unit literal operators for memory size calculations

Definition in file common.hpp.