LibSWOC++ 1.5.14
Solid Wall of C++
Loading...
Searching...
No Matches
swoc::bwf::SubText< Args > Struct Template Reference

#include <bwf_ex.h>

Collaboration diagram for swoc::bwf::SubText< Args >:
Collaboration graph

Public Types

using arg_pack = std::tuple<Args...>
 The pack of arguments for format string.
 

Public Member Functions

 SubText (TextView const &fmt, arg_pack const &args)
 Construct with a specific fmt and args.
 
bool operator! () const
 Check for output not enabled.
 
 operator bool () const
 Check for output enabled.
 

Public Attributes

TextView _fmt
 Format string. If empty, do not generate output.
 
arg_pack _args
 Arguments to format string.
 

Detailed Description

template<typename... Args>
struct swoc::bwf::SubText< Args >

Wrapper for a sub-text, where the args are output according to fmt.

Template Parameters
ArgsArgument types.

Definition at line 99 of file bwf_ex.h.

Member Typedef Documentation

◆ arg_pack

template<typename... Args>
using swoc::bwf::SubText< Args >::arg_pack = std::tuple<Args...>

The pack of arguments for format string.

Definition at line 100 of file bwf_ex.h.

Constructor & Destructor Documentation

◆ SubText()

template<typename... Args>
swoc::bwf::SubText< Args >::SubText ( TextView const & fmt,
arg_pack const & args )
inline

Construct with a specific fmt and args.

Definition at line 105 of file bwf_ex.h.

Member Function Documentation

◆ operator bool()

template<typename... Args>
swoc::bwf::SubText< Args >::operator bool ( ) const
explicit

Check for output enabled.

Definition at line 114 of file bwf_ex.h.

◆ operator!()

template<typename... Args>
bool swoc::bwf::SubText< Args >::operator! ( ) const

Check for output not enabled.

Definition at line 120 of file bwf_ex.h.

Member Data Documentation

◆ _args

template<typename... Args>
arg_pack swoc::bwf::SubText< Args >::_args

Arguments to format string.

Definition at line 102 of file bwf_ex.h.

◆ _fmt

template<typename... Args>
TextView swoc::bwf::SubText< Args >::_fmt

Format string. If empty, do not generate output.

Definition at line 101 of file bwf_ex.h.


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