C++ single-file

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

Top 15 C++ single-file Projects

single-file
  • doctest

    The fastest feature-rich C++11/14/17/20/23 single-header testing framework

  • SaaSHub

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

    SaaSHub logo
  • Magic Enum C++

    Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code

  • Nameof C++

    Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum

  • tomlplusplus

    Header-only TOML config file parser and serializer for C++17.

  • nanobench

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

  • Argh!

    Argh! A minimalist argument handler. (by adishavit)

  • span-lite

    span lite - A C++20-like span for C++98, C++11 and later in a single-file header-only library

  • string-view-lite

    string_view lite - A C++17-like string_view for C++98, C++11 and later in a single-file header-only library

  • expected-lite

    expected lite - Expected objects in C++11 and later in a single-file header-only library

  • semver

    Semantic Versioning for modern C++ (by Neargye)

  • serializer

    A single header standard C++ serialization framework. (by eyalz800)

  • scope_guard

    A modern C++ scope guard that is easy to use but hard to misuse.

  • ring-span-lite

    ring-span lite - A C++yy-like ring_span type for C++98, C++11 and later in a single-file header-only library

  • reflect

    A single file header only static reflection library for C++20. (by M-Fatah)

  • Savefile-Saver

    A program to backup all of your game savefiles on your system, neatly, and into a single folder.

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).

C++ single-file discussion

Log in or Post with

C++ single-file related posts

  • Refactoring with C++17 std::optional

    2 projects | /r/cpp | 22 May 2023
  • Is there a std::string::split or something similar?

    2 projects | /r/cpp_questions | 13 Mar 2023
  • The 23 year-old C++ developers with three job offers over $500k

    2 projects | /r/cpp | 22 Apr 2022
  • Nanobench: Fast, Accurate, Single-Header Microbenchmarking Functionality For C++

    2 projects | /r/cpp | 9 Nov 2021
  • C++ Return: std::any, std::optional, or std::variant?

    1 project | /r/cpp | 20 Sep 2021
  • A note from our sponsor - SaaSHub
    www.saashub.com | 7 Oct 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

Project Stars
1 doctest 5,849
2 Magic Enum C++ 4,840
3 Nameof C++ 2,060
4 tomlplusplus 1,533
5 nanobench 1,419
6 Argh! 1,328
7 span-lite 497
8 string-view-lite 421
9 expected-lite 377
10 semver 297
11 serializer 189
12 scope_guard 176
13 ring-span-lite 152
14 reflect 15
15 Savefile-Saver 10

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you konow that C++ is
the 6th most popular programming language
based on number of metions?