Skip to content

Commit

Permalink
Add fmt::detail::buffer to the docs (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed May 15, 2020
1 parent ea1cd96 commit c5ed73a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/api.rst
Expand Up @@ -273,6 +273,9 @@ Utilities

.. doxygenfunction:: fmt::join(It, It, string_view)

.. doxygenclass:: fmt::detail::buffer
:members:

.. doxygenclass:: fmt::basic_memory_buffer
:protected-members:
:members:
Expand Down
7 changes: 6 additions & 1 deletion include/fmt/core.h
Expand Up @@ -627,7 +627,12 @@ using has_formatter =

namespace detail {

/** A contiguous memory buffer with an optional growing ability. */
/**
\rst
A contiguous memory buffer with an optional growing ability. It is an internal
class and shouldn't be used directly, only via `~fmt::basic_memory_buffer`.
\endrst
*/
template <typename T> class buffer {
private:
T* ptr_;
Expand Down

0 comments on commit c5ed73a

Please sign in to comment.