{"id":60819,"library":"boost-hof","title":"Boost.HOF","description":"Boost hof module provides higher-order functions for C++.","status":"active","version":"1.90.0","language":"cpp","source_language":null,"source_url":null,"tags":["boost","functional","higher-order","utility"],"install":[{"cmd":"vcpkg install boost-hof","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(boost_hof CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE Boost::hof)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"boost/hof.hpp","correct":"#include <boost/hof.hpp>"}],"quickstart":{"code":"#include <boost/hof.hpp>\n#include <iostream>\n\nint main() {\n    auto add = [](int a, int b) { return a + b; };\n    auto add_one = boost::hof::partial(add, 1);\n    std::cout << add_one(2) << std::endl; // Output: 3\n    return 0;\n}","lang":"cpp","description":"Use boost::hof::partial to create a partial function."},"warnings":[],"env_vars":null,"search_vec":"'boost':2,12 'boost.hof':1 'c':11 'function':9,13 'higher':7,15 'higher-ord':6,14 'hof':3 'modul':4 'order':8,16 'provid':5 'util':17","created_at":"2026-06-17T04:29:01.466425+00:00","updated_at":"2026-06-17T04:29:01.466425+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}