Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vitaut/_._
A simple streaming library
https://github.com/vitaut/_._
cpp hacktoberfest streams
Last synced: 3 months ago
JSON representation
A simple streaming library
- Host: GitHub
- URL: https://github.com/vitaut/_._
- Owner: vitaut
- License: mit
- Created: 2019-04-26T20:19:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-06T01:13:34.000Z (about 3 years ago)
- Last Synced: 2024-05-02T16:35:24.946Z (6 months ago)
- Topics: cpp, hacktoberfest, streams
- Language: CMake
- Homepage:
- Size: 17.6 KB
- Stars: 130
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- AwesomeCppGameDev - _._
README
# A simple streaming library
This library provides a convenient shorthand notation for using standard input and output streams.
Usage:
```c++
#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
```cmake
find_package(_._)
add_executable(app app.cc)
target_link_libraries(app _._)
```