C++ single-header

Open-source C++ projects categorized as single-header

Top 15 C++ single-header Projects

  • indicators

    Activity Indicators for Modern C++

  • tabulate

    Table Maker for Modern C++ (by p-ranav)

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • cr

    cr.h: A Simple C Hot Reload Header-only Library

    Project mention: hscpp: An experimental library to hot-reload C++ | reddit.com/r/cpp | 2022-08-04

    I much prefer the approach taken by cr.h which monitors a "plugin" binary instead and acts as a simple wrapper around platform specific dll/dylib/so loading. You then have a multitude of strategies if you need persist state such as serialization, placing code or data on the host side and using virtual methods/fptrs, holding third party lib references to dlls on the host side or using the CR_STATE mechanism for simple things.

  • nanobench

    Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20

    Project mention: how do you properly benchmark? | reddit.com/r/cpp | 2023-02-20

    Nano bench is a great library with low overhead. https://github.com/martinus/nanobench

  • proxy

    Proxy: Easy Polymorphism in C++ (by microsoft)

    Project mention: Static Interfaces, concepts vs de-virtualisation? | reddit.com/r/cpp | 2023-03-24

    Proxy seems more likely than Dyno or AnyAny to be a standard way of doing this in C++'s future.

  • matchit.cpp

    match(it): A lightweight single-header pattern-matching library for C++17 with macro-free APIs.

    Project mention: The pattern matching library match(it) gets its first stable release. | reddit.com/r/cpp | 2022-08-30

    FYI. Now we've supported Id and Id to return lvalue ref and rvalue ref in addition to the original Id returning const lvalue ref, making the solution much more elegant now. Refer to the complete sample at https://github.com/BowenFu/matchit.cpp/blob/main/sample/mutation.cpp.

  • csv2

    Fast CSV parser and writer for Modern C++

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

  • leaf

    Lightweight Error Augmentation Framework (by boostorg)

  • itoa

    Fast integer to ascii / integer to string conversion

  • x86RetSpoof

    Invoke functions with a spoofed return address. For 32-bit Windows binaries. Supports __fastcall, __thiscall, __stdcall and __cdecl calling conventions. Written in C++17.

    Project mention: chances of getting banned with my own cheat | reddit.com/r/Csgohacks | 2022-11-18
  • meta.hpp

    C++20 tiny dynamic reflection library

    Project mention: New C++20 tiny dynamic reflection library. | reddit.com/r/cpp_coroutines | 2022-04-16
  • Heady

    A utility for creating amalgamated single-header C++ libraries

    Project mention: C++ Show and Tell - April 2022 | reddit.com/r/cpp | 2022-04-03

    I've recently made a small update to Heady, which is a C++ library and command-line tool used to create amalgamated single-header libraries from standard C++ source files. In the readme, I also describe how to prepare your source code for header amalgamation using four rules.

  • curl4cpp

    Single header cURL wrapper for C++ around libcURL

  • iface

    Anonymous, non-intrusive interfaces in C++

  • command

    Command, ::process::Command like syscalls in C++. (by ferhatgec)

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-03-24.

C++ single-header related posts

Index

What are some of the best open-source single-header projects in C++? This list will help you:

Project Stars
1 indicators 2,398
2 tabulate 1,525
3 cr 1,283
4 nanobench 1,033
5 proxy 463
6 matchit.cpp 440
7 csv2 378
8 leaf 259
9 itoa 194
10 x86RetSpoof 113
11 meta.hpp 71
12 Heady 25
13 curl4cpp 14
14 iface 6
15 command 3
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com