GithubHelp home page GithubHelp logo

blackmatov / invoke.hpp Goto Github PK

View Code? Open in Web Editor NEW
40.0 3.0 6.0 195 KB

std::invoke/std::apply analogs for C++11/14

Home Page: https://blackmatov.github.io/invoke.hpp

License: MIT License

CMake 16.76% C++ 83.24%
cpp14 cpp17 cpp c-plus-plus c-plus-plus-14 c-plus-plus-17 invoke apply cpp11 c-plus-plus-11

invoke.hpp's Introduction

invoke.hpp

std::invoke/std::apply analogs for C++11/14

linux darwin windows language license

Requirements

Installation

invoke.hpp is a header-only library. All you need to do is copy the headers files from headers directory into your project and include them:

#include "invoke.hpp/invoke.hpp"

Also, you can add the root repository directory to your cmake project:

add_subdirectory(external/invoke.hpp)
target_link_libraries(your_project_target PUBLIC invoke.hpp::invoke.hpp)

API

invoke_hpp::invoke(F&& f, Args&&... args)

Analog of std::invoke from C++17

invoke_hpp::invoke_result<F, Args...>

Analog of std::invoke_result from C++17

invoke_hpp::invoke_result_t<F, Args...>

Analog of std::invoke_result_t from C++17

invoke_hpp::is_invocable<F, Args...>

Analog of std::is_invocable from C++17

invoke_hpp::is_invocable_r<R, F, Args...>

Analog of std::is_invocable_r from C++17

invoke_hpp::apply(F&& f, Tuple&& args)

Analog of std::apply from C++17

invoke.hpp's People

Contributors

blackmatov avatar smay1613 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.