An open API service indexing awesome lists of open source software.

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++

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: [![Build Status](https://travis-ci.org/d-led/cpp_declarative_times.svg?branch=master)](https://travis-ci.org/d-led/cpp_declarative_times) [![Build status](https://ci.appveyor.com/api/projects/status/y7jvewdraaw3s2o0/branch/master?svg=true)](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.