https://github.com/d-led/cpp_declarative_times
Ruby's Integer::times for c++
https://github.com/d-led/cpp_declarative_times
Last synced: 4 months ago
JSON representation
Ruby's Integer::times for c++
- Host: GitHub
- URL: https://github.com/d-led/cpp_declarative_times
- Owner: d-led
- Created: 2016-12-16T19:31:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-18T22:21:47.000Z (over 9 years ago)
- Last Synced: 2025-10-09T12:43:54.175Z (8 months ago)
- Language: Makefile
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Blog: [C++ version of ruby’s Integer::times via user-defined literals](https://ledentsov.de/2016/12/10/cpp-version-ruby-42-times-via-user-defined-literals/)
Benchmarks: [](https://travis-ci.org/d-led/cpp_declarative_times) [](https://ci.appveyor.com/project/d-led/cpp-declarative-times/branch/master)
```cpp
42_times([]{
do_something();
});
```
or
```cpp
42_times(do_something);
```
Feel free to use. No guarantees.