mcpp index

compat.boost-circular-buffer

#include

Boost.CircularBuffer 1.92.0 — a STL-compatible ring buffer container

#include <boost/circular_buffer.hpp>
mcpp add compat.boost-circular-buffer@1.92.0

Usage

From this repository's own test project — built and run by CI, not written for the website.

#include <boost/circular_buffer.hpp>

int main() {
    boost::circular_buffer<int> values(3);
    values.push_back(1);
    values.push_back(2);
    values.push_back(3);
    values.push_back(4);
    return values.size() == 3 && values.front() == 2 && values.back() == 4
        ? 0 : 1;
}

tests/examples/boost-circular-buffer/tests/circular_buffer.cpp · project tests/examples/boost-circular-buffer

Build

targets
boost_circular_buffer (lib)
language
c++23
import std
no
include dirs
*/include

Sources (1)

  • mcpp_generated/boost_circular_buffer_anchor.cpp

Generated files

  • mcpp_generated/boost_circular_buffer_anchor.cpp

Versions

VersionPlatforms Mirrorssha256
1.92.0 latest LinuxWindowsmacOS source 0845c8f06fe5…