Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.
/ any_function Public archive

any_function is a functional counterpart to std::any

License

Notifications You must be signed in to change notification settings

sgorsten/any_function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

any_function.h

Release is 0.8 License is Unlicense

Platform Build Status
Visual Studio 2013 AppVeyor: Build status
GCC 4.9 Travis CI: Build status

any_function.h is a single header public domain utility library for C++11.

It is intended to serve as a functional counterpart to the std::any, by providing a single, concrete class any_function which can receive almost any callable object, from function pointers to lambdas to instantiations of std::function.

This library is still under development and its API and implementation details are subject to change.

TODO

  • Retain reference/const/volatile qualification in parameter and return type metadata
  • L-value reference parameters (should work, but needs testing)
  • R-value reference parameters
  • L-value reference return types
  • R-value reference return types
  • Const/volatile qualified parameters
  • Const/volatile qualified return type
  • Mutable lambdas / stateful function objects

About

any_function is a functional counterpart to std::any

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages