{"id":20077320,"url":"https://github.com/boostorg/poly_collection","last_synced_at":"2025-04-06T22:08:49.025Z","repository":{"id":45466258,"uuid":"72982875","full_name":"boostorg/poly_collection","owner":"boostorg","description":"Fast containers of polymorphic objects.","archived":false,"fork":false,"pushed_at":"2025-03-15T16:57:49.000Z","size":3433,"stargazers_count":64,"open_issues_count":3,"forks_count":28,"subscribers_count":7,"default_branch":"develop","last_synced_at":"2025-03-30T19:07:28.315Z","etag":null,"topics":["boost","containers","cpp","cpp11","polymorphism"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boostorg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-06T10:13:27.000Z","updated_at":"2025-02-04T11:25:14.000Z","dependencies_parsed_at":"2024-12-17T16:11:25.997Z","dependency_job_id":"f70ef2bd-8375-4c42-ade0-924d43eb793b","html_url":"https://github.com/boostorg/poly_collection","commit_stats":null,"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boostorg%2Fpoly_collection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boostorg%2Fpoly_collection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boostorg%2Fpoly_collection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boostorg%2Fpoly_collection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boostorg","download_url":"https://codeload.github.com/boostorg/poly_collection/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557767,"owners_count":20958047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boost","containers","cpp","cpp11","polymorphism"],"created_at":"2024-11-13T15:06:58.574Z","updated_at":"2025-04-06T22:08:49.006Z","avatar_url":"https://github.com/boostorg.png","language":"C++","readme":"# Boost PolyCollection library\n\n[![Branch](https://img.shields.io/badge/branch-master-brightgreen.svg)](https://github.com/boostorg/poly_collection/tree/master) [![CI](https://github.com/boostorg/poly_collection/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/boostorg/poly_collection/actions/workflows/ci.yml) [![Drone status](https://img.shields.io/drone/build/boostorg/poly_collection/master?server=https%3A%2F%2Fdrone.cpp.al\u0026logo=drone\u0026logoColor=%23CCCCCC\u0026label=CI)](https://drone.cpp.al/boostorg/poly_collection) [![Build status](https://img.shields.io/appveyor/build/joaquintides/poly-collection/master?logo=appveyor\u0026label=CI)](https://ci.appveyor.com/project/joaquintides/poly-collection/branch/master) [![Deps](https://img.shields.io/badge/deps-master-brightgreen.svg)](https://pdimov.github.io/boostdep-report/master/poly_collection.html)  [![Documentation](https://img.shields.io/badge/docs-master-brightgreen.svg)](https://www.boost.org/doc/libs/master/doc/html/poly_collection.html)  [![Enter the Matrix](https://img.shields.io/badge/matrix-master-brightgreen.svg)](http://www.boost.org/development/tests/master/developer/poly_collection.html)\u003cbr/\u003e\n[![Branch](https://img.shields.io/badge/branch-develop-brightgreen.svg)](https://github.com/boostorg/poly_collection/tree/develop) [![CI](https://github.com/boostorg/poly_collection/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/boostorg/poly_collection/actions/workflows/ci.yml) [![Drone status](https://img.shields.io/drone/build/boostorg/poly_collection/develop?server=https%3A%2F%2Fdrone.cpp.al\u0026logo=drone\u0026logoColor=%23CCCCCC\u0026label=CI)](https://drone.cpp.al/boostorg/poly_collection) [![Build status](https://img.shields.io/appveyor/build/joaquintides/poly-collection/develop?logo=appveyor\u0026label=CI)](https://ci.appveyor.com/project/joaquintides/poly-collection/branch/develop) [![Deps](https://img.shields.io/badge/deps-develop-brightgreen.svg)](https://pdimov.github.io/boostdep-report/develop/poly_collection.html) [![Documentation](https://img.shields.io/badge/docs-develop-brightgreen.svg)](https://www.boost.org/doc/libs/develop/doc/html/poly_collection.html) [![Enter the Matrix](https://img.shields.io/badge/matrix-develop-brightgreen.svg)](http://www.boost.org/development/tests/develop/developer/poly_collection.html)\u003cbr/\u003e\n[![BSL 1.0](https://img.shields.io/badge/license-BSL_1.0-blue.svg)](https://www.boost.org/users/license.html) \u003cimg alt=\"C++11 required\" src=\"https://img.shields.io/badge/standard-C%2b%2b11-blue.svg\"\u003e \u003cimg alt=\"Header-only library\" src=\"https://img.shields.io/badge/build-header--only-blue.svg\"\u003e\n\n**Boost.PolyCollection**: fast containers of polymorphic objects.\n\nTypically, polymorphic objects cannot be stored *directly* in regular containers\nand need be accessed through an indirection pointer, which introduces performance\nproblems related to CPU caching and branch prediction. Boost.PolyCollection\nimplements a\n[novel data structure](http://www.boost.org/doc/html/poly_collection/an_efficient_polymorphic_data_st.html)\nthat is able to contiguously store polymorphic objects without such indirection,\nthus providing a value-semantics user interface and better performance.\nThree *polymorphic collections* are provided:\n\n* [`boost::base_collection`](http://www.boost.org/doc/html/poly_collection/tutorial.html#poly_collection.tutorial.basics.boost_base_collection) \n* [`boost::function_collection`](http://www.boost.org/doc/html/poly_collection/tutorial.html#poly_collection.tutorial.basics.boost_function_collection)\n* [`boost::any_collection`](http://www.boost.org/doc/html/poly_collection/tutorial.html#poly_collection.tutorial.basics.boost_any_collection)\n\ndealing respectively with classic base/derived or OOP polymorphism, function wrapping\nin the spirit of `std::function` and so-called\n[*duck typing*](https://en.wikipedia.org/wiki/Duck_typing) as implemented by\n[Boost.TypeErasure](http://www.boost.org/libs/type_erasure).\n\n## Learn about Boost.PolyCollection\n\n * [Online docs](http://boost.org/libs/poly_collection)  \n * [Seminal article at bannalia.blogspot.com](http://bannalia.blogspot.com/2014/05/fast-polymorphic-collections.html)\n\n## Install Boost.PolyCollection\n\n* [Download Boost](https://www.boost.org/users/download/) and you're ready to go (this is a header-only library requiring no building).\n* Using Conan 2: In case you don't have it yet, add an entry for Boost in your `conanfile.txt` (the example requires at least Boost 1.86):\n```\n[requires]\nboost/[\u003e=1.86.0]\n```\n\u003cul\u003eIf you're not using any compiled Boost library, the following will skip building altogether:\u003c/ul\u003e\n\n```\n[options]\nboost:header_only=True\n```\n* Using vcpkg: Execute the command\n```\nvcpkg install boost-poly-collection\n```\n* Using CMake: [Boost CMake support infrastructure](https://github.com/boostorg/cmake)\nallows you to use CMake directly to download, build and consume all of Boost or\nsome specific libraries.\n\n## Support\n\n* Join the **#boost** discussion group at [cpplang.slack.com](https://cpplang.slack.com/)\n([ask for an invite](https://cppalliance.org/slack/) if you’re not a member of this workspace yet)\n* Ask in the [Boost Users mailing list](https://lists.boost.org/mailman/listinfo.cgi/boost-users)\n(add the `[poly_collection]` tag at the beginning of the subject line)\n* [File an issue](https://github.com/boostorg/poly_collection/issues)\n\n## Contribute\n\n* [Pull requests](https://github.com/boostorg/poly_collection/pulls) against **develop** branch are most welcome.\nNote that by submitting patches you agree to license your modifications under the [Boost Software License, Version 1.0](http://www.boost.org/LICENSE_1_0.txt).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboostorg%2Fpoly_collection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboostorg%2Fpoly_collection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboostorg%2Fpoly_collection/lists"}