WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
detail::container_buffer< Container > Class Template Reference

#include <fmt/base.h>

Inheritance diagram for detail::container_buffer< Container >:
detail::buffer< Container::value_type >

Public Member Functions

 container_buffer (Container &c)
Public Member Functions inherited from detail::buffer< Container::value_type >
void operator= (const buffer &)=delete
auto begin () noexcept -> Container::value_type *
auto end () noexcept -> Container::value_type *
constexpr auto size () const noexcept -> size_t
 Returns the size of this buffer.
constexpr auto capacity () const noexcept -> size_t
 Returns the capacity of this buffer.
FMT_CONSTEXPR auto data () noexcept -> Container::value_type *
 Returns a pointer to the buffer data (not null-terminated).
FMT_CONSTEXPR void clear ()
 Clears this buffer.
FMT_CONSTEXPR void try_resize (size_t count)
FMT_CONSTEXPR void try_reserve (size_t new_capacity)
FMT_CONSTEXPR void push_back (const Container::value_type &value)
FMT_CONSTEXPR20 void append (const U *begin, const U *end)
 Appends data to the end of the buffer.
FMT_CONSTEXPR auto operator[] (Idx index) -> Container::value_type &

Public Attributes

Container & container

Additional Inherited Members

Public Types inherited from detail::buffer< Container::value_type >
using value_type
using const_reference
Protected Member Functions inherited from detail::buffer< Container::value_type >
FMT_CONSTEXPR buffer (grow_fun grow, size_t sz) noexcept
FMT_CONSTEXPR20 ~buffer ()=default
FMT_CONSTEXPR void set (Container::value_type *buf_data, size_t buf_capacity) noexcept
 Sets the buffer data and capacity.

Constructor & Destructor Documentation

◆ container_buffer()

template<typename Container>
detail::container_buffer< Container >::container_buffer ( Container & c)
inlineexplicit

Member Data Documentation

◆ container

template<typename Container>
Container& detail::container_buffer< Container >::container

The documentation for this class was generated from the following file: