aex — Awesome Embedded Studio's lightweight, Qt-free, header-only C++ extension library. Reusable foundation utilities shared across every Awesome-Embedded-Learning-Studio C++ project.
aex deliberately depends on nothing but the C++ standard library so it can
be dropped into any target — desktop apps, CLI tools, embedded Linux, even
constrained MCUs (copy the headers) — without pulling in Qt or a heavy runtime.
| Module | Header | Provides |
|---|---|---|
expected |
aex/expected/expected.hpp |
aex::expected<T,E> / aex::unexpected — functional error handling |
scope_guard |
aex/scope_guard/scope_guard.hpp |
aex::ScopeGuard — RAII scope-exit cleanup |
weak_ptr |
aex/weak_ptr/weak_ptr.h |
aex::WeakPtr / aex::WeakPtrFactory — non-owning weak references |
singleton |
aex/singleton/*.hpp |
aex::Singleton / aex::SimpleSingleton |
factory |
aex/factory/*.hpp |
generic factory patterns (plain / registered / smart-ptr) |
lockfree |
aex/lockfree/mpsc_queue.hpp |
lock-free MPSC queue |
hash |
aex/hash/constexpr_fnv1a.hpp |
compile-time FNV-1a hashing (aex::hash) |
policy_chain |
aex/policy_chain/policy_chain.hpp |
aex::PolicyChain policy chain |
indexed_vector |
aex/indexed_vector/indexed_vector.hpp |
aex::indexed_vector with aex::IndexingMode |
span |
aex/span/span.h |
aex::span — non-owning view |
helpers |
aex/helpers/once_init.hpp |
aex::CallOnceInit — thread-safe lazy init |
macro |
aex/macro/*.h + aex/macros.h |
platform/architecture detection macros |
Everything lives under the aex:: namespace.
- C++23
- CMake >= 3.16 (only if you consume it via CMake)
- No third-party dependencies; GoogleTest only for the optional test suite.
1. As a CMake subproject / submodule (recommended inside the org):
add_subdirectory(third_party/aex)
target_link_libraries(my_target PRIVATE aex::aex)2. Installed package -- find_package:
find_package(aex 0.1 REQUIRED)
target_link_libraries(my_target PRIVATE aex::aex)3. Header drop-in -- copy include/aex/ into your include path.
cmake -S . -B build -DAEX_BUILD_TESTS=ON
cmake --build build
ctest --test-dir buildSee LICENSE.