vitaut / _._

A simple streaming library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple streaming library

This library provides a convenient shorthand notation for using standard input and output streams.

Usage:

#include <_._>

int main() {
  // Pushing an object into a simple stream:
  (_._) << "Hello World!\n";
  
  // Pulling an object out of a simple stream:
  int i;
  (_._) >> i;
  
  // Wide stream:
  (__.__) >> i;
}

Alternatively, you can use (_*_) instead of (_._).

CMake usage example

find_package(_._)
add_executable(app app.cc)
target_link_libraries(app _._)

About

A simple streaming library

License:MIT License


Languages

Language:CMake 67.2%Language:C++ 32.8%