$ cd ../
cpp_utils — bash

user@devops:~$ cat README.md

cpp_utils

# Description

cpp_utils is a modern header-only C++20 library providing lightweight and safe utilities for everyday C++ development. Includes RAII scope guards (scope_guard, scope_fail, scope_success) for automatic resource management, type-safe bit flags via enum_flags, string utilities such as split, join, trim and safe conversions with std::expected, extensions for std::expected with Result<T> and functional composition, pattern matching for std::variant with overloaded, and useful traits/concepts. Everything is inlineable with zero dynamic allocation, no external dependencies, and zero-cost abstractions.

# Key features

$ RAII scope guards: scope_guard, scope_fail, scope_success with precise exception detection

$ Type-safe bit flags for scoped enums with complete bitwise operators

$ String utilities: split, join, trim, to_lower/upper, iequals, replace_all, safe conversion with std::expected

$ std::expected extensions: Result<T>, wrap_except, then/or_else, collect, try_all

$ Pattern matching for std::variant with overloaded (CTAD)

$ Useful concepts and traits: Numeric, StringLike, Iterable, is_specialization, all_same

$ Zero-cost abstractions: everything inlineable, no external dependencies

# Gallery

Desktop view
cpp_utils - Desktop view
Mobile view
cpp_utils - Mobile view

# Technologies used

C++20 CMake spdlog Catch2
Hermes Agent