WPILibC++ 2025.3.2
Loading...
Searching...
No Matches
detail::iterator_buffer< OutputIt, enable_if_t< is_back_insert_iterator< OutputIt >::value &&is_contiguous< typename OutputIt::container_type >::value, typename OutputIt::container_type::value_type > > Class Template Reference

#include <fmt/base.h>

Inheritance diagram for detail::iterator_buffer< OutputIt, enable_if_t< is_back_insert_iterator< OutputIt >::value &&is_contiguous< typename OutputIt::container_type >::value, typename OutputIt::container_type::value_type > >:
detail::container_buffer< OutputIt::container_type > detail::buffer< OutputIt::container_type::value_type >

Public Member Functions

 iterator_buffer (typename OutputIt::container_type &c)
 
 iterator_buffer (OutputIt out, size_t=0)
 
auto out () -> OutputIt
 
- Public Member Functions inherited from detail::container_buffer< OutputIt::container_type >
 container_buffer (OutputIt::container_type &c)
 
- Public Member Functions inherited from detail::buffer< OutputIt::container_type::value_type >
 buffer (const buffer &)=delete
 
void operator= (const buffer &)=delete
 
auto begin () noexcept -> OutputIt::container_type::value_type *
 
auto begin () const noexcept -> const OutputIt::container_type::value_type *
 
auto end () noexcept -> OutputIt::container_type::value_type *
 
auto end () const noexcept -> const OutputIt::container_type::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 -> OutputIt::container_type::value_type *
 Returns a pointer to the buffer data (not null-terminated).
 
FMT_CONSTEXPR auto data () const noexcept -> const OutputIt::container_type::value_type *
 
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 OutputIt::container_type::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) -> OutputIt::container_type::value_type &
 
FMT_CONSTEXPR auto operator[] (Idx index) const -> const OutputIt::container_type::value_type &
 

Additional Inherited Members

- Public Types inherited from detail::buffer< OutputIt::container_type::value_type >
using value_type
 
using const_reference
 
- Public Attributes inherited from detail::container_buffer< OutputIt::container_type >
OutputIt::container_type & container
 
- Protected Member Functions inherited from detail::buffer< OutputIt::container_type::value_type >
FMT_CONSTEXPR buffer (grow_fun grow, size_t sz) noexcept
 
constexpr buffer (grow_fun grow, OutputIt::container_type::value_type *p=nullptr, size_t sz=0, size_t cap=0) noexcept
 
 buffer (buffer &&)=default
 
FMT_CONSTEXPR20 ~buffer ()=default
 
FMT_CONSTEXPR void set (OutputIt::container_type::value_type *buf_data, size_t buf_capacity) noexcept
 Sets the buffer data and capacity.
 

Constructor & Destructor Documentation

◆ iterator_buffer() [1/2]

template<typename OutputIt >
detail::iterator_buffer< OutputIt, enable_if_t< is_back_insert_iterator< OutputIt >::value &&is_contiguous< typename OutputIt::container_type >::value, typename OutputIt::container_type::value_type > >::iterator_buffer ( typename OutputIt::container_type & c)
inlineexplicit

◆ iterator_buffer() [2/2]

template<typename OutputIt >
detail::iterator_buffer< OutputIt, enable_if_t< is_back_insert_iterator< OutputIt >::value &&is_contiguous< typename OutputIt::container_type >::value, typename OutputIt::container_type::value_type > >::iterator_buffer ( OutputIt out,
size_t = 0 )
inlineexplicit

Member Function Documentation

◆ out()

template<typename OutputIt >
auto detail::iterator_buffer< OutputIt, enable_if_t< is_back_insert_iterator< OutputIt >::value &&is_contiguous< typename OutputIt::container_type >::value, typename OutputIt::container_type::value_type > >::out ( ) -> OutputIt
inline

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