ASTD (Artemis Standard Library) is a lightweight, header-only C++ library designed for use across Artemis projects. It extends the C++ standard library with practical utilities for math operations, fraction arithmetic, and system time access — all accessible through a single convenience include with no build step required.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/X-ARTEMIS/ASTD/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Get ASTD into your project in two steps — no package manager required.
Quickstart
Write your first program with ASTD’s math and time utilities.
API Reference
Explore all public functions, classes, and operators in ASTD.
Versioning
Understand ASTD’s semantic versioning policy and release cadence.
What’s in ASTD
ASTD ships three modules, all included via the umbrella headerastd/astd.hpp:
Math
power(), square(), and getNumType() for common numeric operations.Fraction
A templated
fraction<T,U> class with full arithmetic operator support.Time
getSystemTime() and getSystemTrimmedTime() via std::chrono.Quick Look
astd_demo.cpp
ASTD requires C++20 or later. The
fraction class and time module depend on <numeric> (for std::lcm) and <chrono> respectively, both part of the C++20 standard.