File: README.md

package info (click to toggle)
polybar 3.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,108 kB
  • sloc: cpp: 30,424; python: 3,750; sh: 284; makefile: 83
file content (27 lines) | stat: -rw-r--r-- 722 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# AutoStringStream ![license](https://img.shields.io/npm/l/chas-storage.svg)

Simple header-only wrapper on `std::stringstream` with automatic casting to `std::string`

## Usage

```c++
#include <auss.hpp>
```
```c++
auss_t() << "Hello, " << user_name
```
```c++
throw std::runtime_error(auss_t() << "Something gone wrong, See " << log_path)
```

### Own namespace
If you wouldn't pollute global namespace just define `AUSS_USE_OWN_NAMESPACE`. Either before `#include` or in compiler flags (`-DAUSS_USE_OWN_NAMESPACE` for GCC).

Also you can specifiy the name of namespace with `AUSS_OWN_NAMESPACE_NAME`:
```
-DAUSS_OWN_NAMESPACE_NAME="theauss"
```

## License

Licensed under Unlicense. See `LICENSE` file for more info.