Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 32 additions & 59 deletions doc/circular_buffer.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,12 @@
[source-mode c++]
]

[/ Links - by (most common) convention, prefixed with double underscore so not confused with other names.]
[def __alert [$./images/alert.png]] [/ Examples of your own images (in doc/html/images/ .]
[def __tip [$./images/tip.png]]
[/ If you provide a file type like .png, you will probably find that the file is missing in the pdf version.]
[/ This is because the default file type specified is .png in html, but .svg for pdf version.]

[/ Some links to external sources.]
[/ You often want to link more than once, so using a def ensures you always refer to the same location.]
[def __boost [@http://www.boost.org/ Boost]] [/Boost.org]
[def __boostroot [@boost: Boost root]] [/ Your boost root]
[/Note the custom boost root url schema for linking to files within the Boost distribution.]
[/Note It can't be used for images, nor for pdf, so not so useful.]
[/def __boostlicense [@http://www.boost.org/LICENSE_1_0.txt Boost License]]
[/ Or refer to your most recent version of Boost.]
[def __boostlicense [@boost:/LICENSE_1_0.txt Boost License]]
[def __boostbook [@http://www.boost.org/doc/html/boostbook.html BoostBook]]
[def __boostbook_docs [@http://www.boost.org/doc/libs/1_53_0/doc/html/boostbook.html BoostBook documentation]]
[def __quickbook [@http://www.boost.org/doc/tools/quickbook/index.html Quickbook]]
[def __quickbook_syntax [@http://www.boost.org/doc/libs/1_53_0/doc/html/quickbook/ref.html Quickbook Syntax Compendium]]
[def __docbook [@http://www.docbook.org/ DocBook]]
[def __doxygen [@http://www.doxygen.org/ Doxygen]]
[def __autoindex [@boost:/tools/auto_index/doc/html/index.html AutoIndex]]
[def __pdf [@http://www.adobe.com/products/acrobat/adobepdf.html PDF]]
[def __textpad [@http://www.textpad.com Textpad]]
[def __emacs [@http://www.gnu.org/software/emacs/ GNU emacs]]
[def __css [@http://en.wikipedia.org/wiki/Cascading_Style_Sheets Cascading Style Sheet]]
[def __intro [link circular_buffer.intro Introduction]] [/Link to a Quickbook section (see below).]

[def __docbook_params [@http://docbook.sourceforge.net/release/xsl/current/doc/ Docbook xsl:param format options]]

[/ Links - by convention, prefixed with double underscore so not confused with other names.]
[def __cb [classref boost::circular_buffer circular_buffer]]
[def __cbso [classref boost::circular_buffer_space_optimized circular_buffer_space_optimized]]
[def __min_capacity [memberref boost::circular_buffer_space_optimized::min_capacity() min_capacity]]
[def __capacity_control [memberref boost::circular_buffer_space_optimized::capacity_control () capacity_control ]]

[def __debug_support [link circular_buffer.implementation.debug_support debug support]]

[include ../../../tools/auto_index/include/auto_index_helpers.qbk]
[/ Must be first included file!]

Expand Down Expand Up @@ -315,11 +284,10 @@ This leads us to the following situation:
The __cb should not be used for storing pointers to dynamically allocated objects.
When a circular buffer becomes full, further insertion will overwrite the stored pointers
- resulting in a [*memory leak]. One recommend alternative is the use of smart pointers, for example
[@http://www.boost.org/doc/libs/1_53_0/libs/smart_ptr/smart_ptr.htm Boost Smart pointers].

[@http://en.wikipedia.org/wiki/Std::auto_ptr std::auto_ptr]
[@boost:libs/smart_ptr/index.html Boost.SmartPtr].

[caution Any container of `std::auto_ptr` is considered particularly hazardous.]
[caution Any container of `std::auto_ptr` is considered particularly hazardous.
(`std::auto_ptr` was deprecated in C++11 and removed in C++17.)]

[tip Never create a circular buffer of `std::auto_ptr`.
Refer to Scott Meyers' excellent book Effective STL for a detailed discussion.
Expand Down Expand Up @@ -495,46 +463,51 @@ The Alloc has to meet the allocator requirements imposed by STL.]]

[endsect] [/section:template_params Template Parameters]

[section:tickets Trac Tickets]
[section:issues Reporting Issues]

Report and view bugs and features by adding a ticket at [@https://svn.boost.org/trac/boost Boost.Trac].
Report bugs and request features in the
[@https://github.com/boostorg/circular_buffer/issues GitHub issue tracker].
Pull requests are welcome at [@https://github.com/boostorg/circular_buffer boostorg/circular_buffer].

Existing open tickets for this library alone can be viewed
[@https://svn.boost.org/trac/boost/query?status=assigned&status=new&status=reopened&component=circular_buffer&col=id&col=summary&col=status&col=owner&col=type&col=milestone&order=priority here].
Existing tickets for this library - including closed ones - can be viewed
[@https://svn.boost.org/trac/boost/query?status=assigned&status=closed&status=new&status=reopened&component=circular_buffer&col=id&col=summary&col=status&col=owner&col=type&col=milestone&order=priority here].
[endsect] [/section:issues Reporting Issues]

Type: Bugs
[section:release Release Notes]

[@https://svn.boost.org/trac/boost/ticket/4100 #4100] Some boost classes have sizeof that depends on NDEBUG.
[h4 Boost 1.91]

[@https://svn.boost.org/trac/boost/ticket/5362 #5362] circular_buffer does not compile with BOOST_NO_EXCEPTIONS.
* Avoided a GCC 4.x warning about calling `memset` with a constant size of zero.

[@https://svn.boost.org/trac/boost/ticket/6277 #6277] Checked iterators are not threadsafe.
[h4 Boost 1.81]

[@https://svn.boost.org/trac/boost/ticket/6747 #6747] Circular_Buffer / Bounded_Buffer inside Template class problem.
* Fixed `-Wdeprecated-copy` warnings.

[@https://svn.boost.org/trac/boost/ticket/7025 #7025] circular buffer reports warning: " type qualifiers ignored on function return type" while compile.
[h4 Boost 1.74]

[@https://svn.boost.org/trac/boost/ticket/7950 #7950] Eliminate W4-warnings under VS2005.
* Added `cbegin()` and `cend()`.
* Simplified allocator support using Boost.Core's `allocator_access`.

[@https://svn.boost.org/trac/boost/ticket/8012 #8012] Inconsistency in `linearize()`.
[h4 Boost 1.72]

[@https://svn.boost.org/trac/boost/ticket/8438 #8438] `vector` & __cb storage misbehave when using compiler optimizations.
* `max_size()` now uses the allocator's `max_size()` when available.

Type: Feature Requests
[h4 Boost 1.71]

[@https://svn.boost.org/trac/boost/ticket/5511 #5511] Documentation needs some improvement.
* Fixed the internal check for uninitialized memory when the buffer is not wrapped.
* Eliminated undefined-behaviour sanitizer warnings in internal pointer arithmetic.

[@https://svn.boost.org/trac/boost/ticket/7888 #7888] circular_buffer should support move semantics.
[h4 Boost 1.69]

Type: Patches
* Used the empty base optimization for the allocator.
* Stopped inheriting from `std::iterator`, which is deprecated in C++17.
* Dropped the dependency on Boost.Iterator and removed other unnecessary includes.

[@https://svn.boost.org/trac/boost/ticket/8032 #8032] Warning fixes in circular_buffer.
[h4 Boost 1.62]

[endsect] [/section:tickets Trac Tickets]
* Debug support is now disabled by default. Define `BOOST_CB_ENABLE_DEBUG` to 1 to enable it.

[section:release Release Notes]
[h4 Boost 1.57]

* Used `move_if_noexcept` from Boost.Move.

[h4 Boost 1.56]

Expand All @@ -552,7 +525,7 @@ Type: Patches

[h4 Boost 1.37]

*Added new methods is_linearized() and rotate(const_iterator).
* Added new methods is_linearized() and rotate(const_iterator).
* Fixed bugs:
[@https://svn.boost.org/trac/boost/ticket/1987 #1987] Patch to make circular_buffer.hpp #includes absolute.
[@https://svn.boost.org/trac/boost/ticket/1852 #1852] Copy constructor does not copy capacity.
Expand Down
12 changes: 4 additions & 8 deletions doc/jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,12 @@ doxygen autodoc
<doxygen:param>"PREDEFINED= \\
\"BOOST_PREVENT_MACRO_SUBSTITUTION\" \\
\"BOOST_STATIC_CONSTANT(T,V)=static x const y\" \\
\"BOOST_UNITS_AUTO_STATIC_CONSTANT(a,b)=static const auto a = b\" \\
\"BOOST_DEDUCED_TYPENAME=typename\" \\
\"BOOST_CONSTEXPR=constexpr\" \\
\"BOOST_CONTAINER_NOEXCEPT=noexcept\" \\
\"BOOST_CONTAINER_NOEXCEPT_IF(T)=noexcept(T)\" \\
\"BOOST_UNITS_TYPEOF(a)=typeof(a)\" \\
\"BOOST_UNITS_HAS_TYPEOF=1\" \\
\"BOOST_MPL_ASSERT(expr)=\" \\
\"BOOST_NOEXCEPT=noexcept\" \\
\"BOOST_NOEXCEPT_IF(T)=noexcept(T)\" \\
\"BOOST_ASSERT(expr)=\" \\
\"BOOST_RV_REF(T)=T &&\" \\
\"BOOST_RV_REF(T)=T &&\" \\
\"ASSERT(x)=assert(x)\" \\
\"__cplusplus \""
# BOOST_PREVENT_MACRO_SUBSTITUTION, will not be replaced by ,
Expand Down Expand Up @@ -141,7 +137,7 @@ boostbook standalone

<auto-index>on # Turns on index (or off).
# Turns on (or off) index-verbose for diagnostic info (using /bin auto-index-verbose folders).
<auto-index-verbose>on
<auto-index-verbose>off

<format>pdf:<auto-index-internal>off # on (or off) to use internally generated indexes.

Expand Down
6 changes: 3 additions & 3 deletions example/circular_buffer_bound_example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ class Consumer
}
};

/*`Create a first-int first-out test of the bound_buffer.
Include a call to boost::progress_timer
/*`Create a first-in first-out test of the bounded_buffer.
Include a call to boost::timer::auto_cpu_timer

[@http://www.boost.org/doc/libs/1_53_0/libs/timer/doc/cpu_timers.html CPU timer]
[@boost:libs/timer/doc/cpu_timers.html CPU timer]

*/
template<class Buffer>
Expand Down
Loading