Skip to content

Add README.md with an introduction to the library - #64

Merged
nigels-com merged 1 commit into
boostorg:developfrom
nigels-com:readme
Nov 30, 2026
Merged

nigels-com merged 1 commit into
boostorg:developfrom
nigels-com:readme

Conversation

@nigels-com

Copy link
Copy Markdown
Collaborator

The repository has no README, so its GitHub page opens on a bare file list. This adds a short, welcoming front page in the style of other Boost libraries such as Beast, adapted from the existing documentation.

Contents

  • Header: the Boost logo, the title, a one-line tagline, and CI and documentation badges for master and develop.
  • Introduction:
    • what a circular buffer is;
    • how boost::circular_buffer relates to std::deque and std::vector;
    • the diagram from the documentation;
    • a short example adapted from example/circular_buffer_example.cpp.
  • Features:
    • header-only;
    • C++03 onwards;
    • fixed memory with no hidden allocation;
    • STL compliance;
    • contiguous storage (array_one, array_two, linearize);
    • debug support;
    • the space-optimized variant.
  • Typical uses, taken from the rationale in the documentation, and a note that the buffer isn't thread-safe.
  • Getting started: comes with Boost, CMake usage, and the header-only dependencies.
  • Documentation, building the tests, git branches, contributing and license.

Boost logo

doc/images/boost-logo.svg is the official transparent logo, copied from boostorg/website-v2-docs. It's stored in the repository because GitHub often won't display SVGs linked from raw.githubusercontent.com.

The Boost Logo Policy allows this without written approval, since the library is part of Boost. Its reproduction rules are followed:

  • the logo appears once;
  • it isn't rotated, stretched or combined with other artwork (only the width is set);
  • it uses the official Boost Mustard color and a transparent background, and is clearly visible in both GitHub's light and dark themes;
  • the README credits The C++ Alliance.

Add a short front page for the GitHub repository, in the style of
other Boost libraries such as Beast:

- The Boost logo, title, and CI and documentation badges for master
  and develop.
- What a circular buffer is, how boost::circular_buffer relates to
  the standard containers, the diagram from the documentation, and a
  short example (adapted from example/circular_buffer_example.cpp)
  that compiles as C++03 and C++17.
- Features: header-only, C++03 onwards, fixed memory with no hidden
  allocation, STL compliance, contiguous storage, debug support, and
  the space-optimized variant.
- Typical uses, and a note that the buffer is not thread-safe.
- Getting started with CMake, the dependencies, links to the
  documentation and examples, building the tests with b2 or the
  standalone CMake build, git branches, contributing, and the
  license.

Add the official Boost logo as doc/images/boost-logo.svg, copied from
boostorg/website-v2-docs (antora-ui/src/img/boost-logo-transparent.svg).
A local copy is used because GitHub often won't display SVGs linked
from raw.githubusercontent.com. Its use follows the Boost Logo
Policy: the library is part of Boost, the logo appears once and isn't
altered, and the README credits The C++ Alliance.
@nigels-com nigels-com added this to the boost 1.94.0 milestone Nov 30, 2026
@codecov

codecov Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@ff8107c). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop      #64   +/-   ##
==========================================
  Coverage           ?   99.43%           
==========================================
  Files              ?       10           
  Lines              ?     4578           
  Branches           ?     3358           
==========================================
  Hits               ?     4552           
  Misses             ?       23           
  Partials           ?        3           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nigels-com
nigels-com merged commit c75bf82 into boostorg:develop Nov 30, 2026
75 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant