nowfound

Dev tools · alternatives · 2026

24 alternatives to Nameof operator for modern C++

C++17 nameof operator to obtain name variable, type and enum

Below are 24 products that do a similar job, ranked by how close each is in meaning and then by launch-day votes. Nameof operator for modern C++ launched in 2019; newer entries below may have overtaken it.

  1. 1

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

    2019 · github.com · its alternatives →

  2. 2

    A dbg(…) macro for C++. Contribute to sharkdp/dbg-macro development by creating an account on GitHub.

    2019 · github.com · its alternatives →

  3. 3

    Meta programming utilities for C++14. Merged in matt-42/lithium - matt-42/iod

    2014 · github.com · its alternatives →

  4. 4

    A lightweight single-header pattern-matching library for C++17 with macro-free APIs. Try it at https://godbolt.org/z/8YMr8Kz8j

    2022 · github.com · its alternatives →

  5. 5

    Morning HN. I often found myself wondering "how much does this code segment take in terms of total runtime" and it's often quite annoying to figure out with optimizations enabled, especially when working on something new or testing someone else's implementation without the proper tooling set up. Wanted to have a single include lib that would allow us to write something like: ``` PROFILE("Loop 1") for (...) // some work ``` and have the next expression automatically record time & dump results to a table. Wrote a few macros to do exactly that a few months back, but they were…

    2025 · github.com · its alternatives →

  6. 6

    Try it on Compiler Explorer: https://godbolt.org/z/91dj5jeGW Check out the source code: https://github.com/RyanJK5/rjk-duck

    Jul 2026 · ryanjk5.github.io · its alternatives →

  7. 7

    ⛳ Simple, extensible, header-only C++20 argument parser released into the public domain. - sailormoon/flags

    2016 · github.com · its alternatives →

  8. 8

    Contribute to mehrdadn/libvital development by creating an account on GitHub.

    2022 · github.com · its alternatives →

  9. 9

    A C++ HTML template engine that uses compile time HTML parsing - rep-movsd/see-phit

    2017 · github.com · its alternatives →

  10. 10

    A C++ library for debugging purposes that can print any variable, even user-defined types. - philip82148/cpp-dump

    2023 · github.com · its alternatives →

  11. 11

    Wiki:. Contribute to dchichkov/curious-namespace-trick development by creating an account on GitHub.

    2016 · github.com · its alternatives →

  12. 12

    Meta programming utilities for C++14. Merged in matt-42/lithium - matt-42/iod

    2014 · github.com · its alternatives →

  13. 13

    Closure Conversion. GitHub Gist: instantly share code, notes, and snippets.

    2019 · gist.github.com · its alternatives →

  14. 14

    A mirror of https://git.sr.ht/~grego/sumtypes.h. Contribute to grego/sumtype.h development by creating an account on GitHub.

    2024 · github.com · its alternatives →

  15. 15

    Develop your programming skills or start your coding journey

    2021 · play.google.com · its alternatives →

  16. 16

    I've created cppmatch, a lightweight, header-only C++ library that brings Rust-inspired pattern matching and error handling to C++. It tries to imitate the functionality of the questionmark (?) operator in C++ by using a macro that uses the gcc extension https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html This allows to create exceptionless code with non-intrusive error-as-value that unlike Exceptions, makes it clear which kinds of error a function can generate and forces you to handle (or ignore) them. The ? operator translates to *expect* To handle the errors I…

    2025 · github.com · its alternatives →

  17. 17

    Parse command line arguments by defining a struct. Contribute to p-ranav/structopt development by creating an account on GitHub.

    2020 · github.com · its alternatives →

  18. 18

    Fast, direct and static typed parsing of JSON with C++ - netheril96/StaticJSON

    2016 · github.com · its alternatives →

  19. 19

    Codebrowser homepage

    2016 · code.woboq.org · its alternatives →

  20. 20

    This C library is part of a main project aimed at providing a reactive key-value (KV) database. The data is typed (numbers, strings, dates, or booleans) and can include formulas with references to other entries. Clients connected to this database receive a real-time data stream with updates to the subscribed keys, allowing them to react to changes and their dependencies. Essentially, it’s like building a distributed Excel, where data and formulas dynamically update across the system. I couldn’t find any libraries that offered the full set of features I needed for evaluating expressions, so I…

    2024 · github.com · its alternatives →

  21. 21

    A fast and memory-optimized string library for C++ - btwael/SuperString

    2018 · github.com · its alternatives →

  22. 22PJ
  23. 23

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

    2016 · github.com · its alternatives →

  24. 24

    Hi HN, I’m the creator of C/C++ Cheatsheet — a modern, practical reference for both C and C++ developers. It includes concise snippet-style explanations of core language features, advanced topics like coroutines and constexpr, system programming sections, debugging tools, and useful project setups. You can explore it online at https://cppcheatsheet.com/. I built this to help both beginners and experienced engineers quickly find clear examples and explanations without digging through fragmented blogs or outdated docs. It’s open source, regularly maintained, and…

    Jan 2026 · github.com · its alternatives →

Also compare

Ranked by how close each launch is in meaning, then by votes. Prices were read from each product’s own site when checked and can change. Refine with your own description →