compile-time-printer icon indicating copy to clipboard operation
compile-time-printer copied to clipboard

Prints values and types during compilation!

Results 10 compile-time-printer issues
Sort by recently updated
recently updated
newest added

See https://docs.python.org/3/library/functions.html#print

enhancement
cpp
python

Request is out: https://github.com/compiler-explorer/compiler-explorer/issues/2392

enhancement

```cpp constexpr auto test = ctp::printf( "┌{0:─^{2}}┐\n" "│{1: ^{2}}│\n" "└{0:─^{2}}┘\n", "", "Hello, world!", 20); ``` Should print: ``` ┌────────────────────┐ │ Hello, world! │ └────────────────────┘ ```

enhancement
cpp
python

`ctp::print(ctp::file_descriptor("log.txt"), "Hello World", 42);`

enhancement
cpp
python

See https://github.com/Viatorus/compile-time-printer/blob/d1dacb32942e4de6d6025e5b7cf7b665f9c584b5/tests/test_main.py#L137-L140

enhancement
python

```cpp auto dur = ctp::bench(1 /* id */, []{ // code... }); ctp::print(dur); // 1s 12 ms ```

enhancement
cpp
python

I think I briefly saw somewhere use of this project as a way to include limited C++ snippets that are "run" at text generation time without the need for some...

question