Higher-order functions for c++
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
HigherOrderFunctions is a header-only C++11/C++14 library that provides utilities for functions and function objects, which can solve many problems with much simpler constructs than whats traditionally been done with metaprogramming.
constexprevaluation of functions. It takes advantage of type deduction, variadic templates, and perfect forwarding to provide a simple and modern interface.
HigherOrderFunctions is divided into three components:
This requires a C++11 compiler. There are no third-party dependencies. This has been tested on clang 3.5-3.8, gcc 4.6-7, and Visual Studio 2015 and 2017.
On older compilers such as gcc 4.6 and gcc 4.7,
noexceptis not used due to many bugs in the implementation. Also, most compilers don't support deducing
noexceptwith member function pointers. Only newer versions of gcc(4.9 and later) support this.
Boost.HigherOrderFunctions library uses cmake to build. To configure with cmake create a build directory, and run cmake:
mkdir build cd build cmake ..
To install the library just run the
cmake --build . --target install
The tests can be built and run by using the
cmake --build . --target check
The tests can also be ran using Boost.Build, just copy library to the boost source tree, and then:
cd test b2
The documentation is built using Sphinx. First, install the requirements needed for the documentation using
pip install -r doc/requirements.txt
Then html documentation can be generated using
sphinx-build -b html doc/ doc/html/
The final docs will be in the