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

Typed owner for a register-context traits specialization. More...

#include <register_context.hpp>

Public Types

using traits_type = register_context_traits< Tag >
 
using context_type = typename traits_type::context_type
 

Public Member Functions

constexpr register_context (context_type context, address_space_ref space, span< std::byte > scratch RELOCO_LIFETIMEBOUND RELOCO_LIFETIME_CAPTURE_BY_THIS) noexcept
 
constexpr value_ref< context_type > context () &noexcept RELOCO_LIFETIMEBOUND
 
constexpr value_ref< const context_type > context () const &noexcept RELOCO_LIFETIMEBOUND
 
constexpr register_context_ref ref () &noexcept RELOCO_LIFETIMEBOUND
 
constexpr register_context_ref ref () const &noexcept RELOCO_LIFETIMEBOUND
 
value_ref< context_type > context () &&=delete
 
value_ref< const context_type > context () const &&=delete
 
register_context_ref ref () &&=delete
 
register_context_ref ref () const &&=delete
 

Detailed Description

template<typename Tag>
class microfmt::register_context< Tag >

Typed owner for a register-context traits specialization.

Member Typedef Documentation

◆ context_type

template<typename Tag >
using microfmt::register_context< Tag >::context_type = typename traits_type::context_type

◆ traits_type

template<typename Tag >
using microfmt::register_context< Tag >::traits_type = register_context_traits<Tag>

Constructor & Destructor Documentation

◆ register_context()

template<typename Tag >
constexpr microfmt::register_context< Tag >::register_context ( context_type  context,
address_space_ref  space,
span< std::byte > scratch RELOCO_LIFETIMEBOUND  RELOCO_LIFETIME_CAPTURE_BY_THIS 
)
inlineconstexprnoexcept

Member Function Documentation

◆ context() [1/4]

template<typename Tag >
value_ref< context_type > microfmt::register_context< Tag >::context ( ) &&
delete

◆ context() [2/4]

template<typename Tag >
constexpr value_ref< context_type > microfmt::register_context< Tag >::context ( ) &
inlineconstexprnoexcept

◆ context() [3/4]

template<typename Tag >
value_ref< const context_type > microfmt::register_context< Tag >::context ( ) const &&
delete

◆ context() [4/4]

template<typename Tag >
constexpr value_ref< const context_type > microfmt::register_context< Tag >::context ( ) const &
inlineconstexprnoexcept

◆ ref() [1/4]

template<typename Tag >
register_context_ref microfmt::register_context< Tag >::ref ( ) &&
delete

◆ ref() [2/4]

template<typename Tag >
constexpr register_context_ref microfmt::register_context< Tag >::ref ( ) &
inlineconstexprnoexcept

◆ ref() [3/4]

template<typename Tag >
register_context_ref microfmt::register_context< Tag >::ref ( ) const &&
delete

◆ ref() [4/4]

template<typename Tag >
constexpr register_context_ref microfmt::register_context< Tag >::ref ( ) const &
inlineconstexprnoexcept

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