microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Member Functions | List of all members
microfmt::container_sink< Container, type > Class Template Reference

#include <container_sink.hpp>

Public Member Functions

constexpr container_sink (Container &target RELOCO_LIFETIMEBOUND RELOCO_LIFETIME_CAPTURE_BY_THIS) noexcept
 
 container_sink (const container_sink &)=delete
 
container_sink & operator= (const container_sink &)=delete
 
 container_sink (container_sink &&) noexcept=default
 
container_sink & operator= (container_sink &&) noexcept=default
 
sink as_sink () noexcept RELOCO_LIFETIMEBOUND
 
void put (char c) noexcept
 
bool failed () const noexcept
 
RELOCO_BEGIN_UNSAFE_CODE void write (microfmt::string_view sv) noexcept
 

Constructor & Destructor Documentation

◆ container_sink() [1/3]

template<typename Container , typename std::enable_if< is_growable_char_container< Container >, int >::type = 0>
constexpr microfmt::container_sink< Container, type >::container_sink ( Container &target RELOCO_LIFETIMEBOUND  RELOCO_LIFETIME_CAPTURE_BY_THIS)
inlineexplicitconstexprnoexcept

◆ container_sink() [2/3]

template<typename Container , typename std::enable_if< is_growable_char_container< Container >, int >::type = 0>
microfmt::container_sink< Container, type >::container_sink ( const container_sink< Container, type > &  )
delete

◆ container_sink() [3/3]

template<typename Container , typename std::enable_if< is_growable_char_container< Container >, int >::type = 0>
microfmt::container_sink< Container, type >::container_sink ( container_sink< Container, type > &&  )
defaultnoexcept

Member Function Documentation

◆ as_sink()

template<typename Container , typename std::enable_if< is_growable_char_container< Container >, int >::type = 0>
sink microfmt::container_sink< Container, type >::as_sink ( )
inlinenoexcept

◆ failed()

template<typename Container , typename std::enable_if< is_growable_char_container< Container >, int >::type = 0>
bool microfmt::container_sink< Container, type >::failed ( ) const
inlinenoexcept

True if the container failed to grow (reloco try_* error, or an exception from a std container when exceptions are enabled); output was truncated from that point.

◆ operator=() [1/2]

template<typename Container , typename std::enable_if< is_growable_char_container< Container >, int >::type = 0>
container_sink & microfmt::container_sink< Container, type >::operator= ( const container_sink< Container, type > &  )
delete

◆ operator=() [2/2]

template<typename Container , typename std::enable_if< is_growable_char_container< Container >, int >::type = 0>
container_sink & microfmt::container_sink< Container, type >::operator= ( container_sink< Container, type > &&  )
defaultnoexcept

◆ put()

template<typename Container , typename std::enable_if< is_growable_char_container< Container >, int >::type = 0>
void microfmt::container_sink< Container, type >::put ( char  c)
inlinenoexcept

◆ write()

template<typename Container , typename std::enable_if< is_growable_char_container< Container >, int >::type = 0>
RELOCO_BEGIN_UNSAFE_CODE void microfmt::container_sink< Container, type >::write ( microfmt::string_view  sv)
inlinenoexcept

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