initial commit

This commit is contained in:
2018-12-08 08:08:03 +07:00
commit bf712766d8
7 changed files with 14825 additions and 0 deletions

27
README.md Normal file
View File

@@ -0,0 +1,27 @@
# invoke.hpp
> std::invoke/std::apply analogs for C++14
[invoke]: https://github.com/BlackMATov/invoke.hpp
## Installation
[invoke.hpp][invoke] is a single header library. All you need to do is copy the header file into your project and include this file:
```cpp
#include "invoke.hpp"
```
## API
### `invoke_hpp::invoke(F&& f, Args&&... args)`
Analog of [std::invoke](https://en.cppreference.com/w/cpp/utility/functional/invoke) from C++17
### `invoke_hpp::invoke_result<F, Args...>`
Analog of [std::invoke_result](https://en.cppreference.com/w/cpp/types/result_of) from C++17
### `invoke_hpp::apply(F&& f, Tuple&& args)`
Analog of [std::apply](https://en.cppreference.com/w/cpp/utility/apply) from C++17