mirror of
https://github.com/BlackMATov/invoke.hpp.git
synced 2025-12-14 14:19:14 +07:00
initial commit
This commit is contained in:
27
README.md
Normal file
27
README.md
Normal 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
|
||||
Reference in New Issue
Block a user