#include <soi> and you're ready to go!
Go to file
Johannes Kapfhammer 44aa8d060a initial commit 2019-10-06 16:45:29 +02:00
include initial commit 2019-10-06 16:45:29 +02:00
README.md initial commit 2019-10-06 16:45:29 +02:00
example.cpp initial commit 2019-10-06 16:45:29 +02:00

README.md

#include <soi>

Include soi and you're ready to go!

dbg(...)

You can debug any expressions using the macro dbg().

Configuration

You can set the following environment variables to customize the behaviour.

SOI_H_COLOR: By default, colored output is shown in case a terminal is connected. You can force colors with SOI_H_COLOR=1 and shut them off with SOI_H_COLOR=0.

SOI_H_EOFCHECK: By default, it is not checked, whether you have read all the input. In case you pipe the input from a file or want to issue a proper EOF character (Control D under linux or Control Z under Windows), you can enable this check using SOI_H_COLOR=1.

Template

Using this header is as simple as:

#include <soi>

signed main() {
  // your code goes here
}

It requires at least c++11 to function.