Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
anarki
Community-managed fork of the Arc dialect of Lisp; for commit privileges submit a pull request.
Try https://cppinsights.io. For example, go to https://cppinsights.io/s/8401262a and click the play button at the top left.
If you're doing something more complex, you might need metashell. See http://metashell.org/manual/how_to/index.html#see-what-templ.... But you have to really, deeply, love C++ to get much out of it.
Untested / unverified approaches:
Seems thee's an emacs "expand the C++ template" concept: demystifycpp https://github.com/chriskmanx/demystifycpp
etbrain's ide package(s) support gcc cpp directives, so in theory should be able to expand a c++ template in cpp fashion in similar manner as regular code blocks. https://www.jetbrains.com
arc [1] / racket implimentation of demystifycpp might be able to provide something 'usable' at the command line / straight up web browser html file.
[1] : https://arclanguage.github.io/