Public Types | Public Member Functions | Public Attributes | List of all members
internal::arg_ref< Char > Struct Template Reference

#include <format.h>

Public Types

enum  Kind { NONE, INDEX, NAME }
 

Public Member Functions

FMT_CONSTEXPR arg_ref ()
 
FMT_CONSTEXPR arg_ref (unsigned index)
 
 arg_ref (basic_string_view< Char > nm)
 
FMT_CONSTEXPR arg_refoperator= (unsigned idx)
 

Public Attributes

Kind kind
 
union {
   unsigned   index
 
   string_value< Char >   name
 
}; 
 

Detailed Description

template<typename Char>
struct internal::arg_ref< Char >

Definition at line 1707 of file format.h.

Member Enumeration Documentation

template<typename Char>
enum internal::arg_ref::Kind
Enumerator
NONE 
INDEX 
NAME 

Definition at line 1708 of file format.h.

Constructor & Destructor Documentation

template<typename Char>
FMT_CONSTEXPR internal::arg_ref< Char >::arg_ref ( )
inline

Definition at line 1710 of file format.h.

template<typename Char>
FMT_CONSTEXPR internal::arg_ref< Char >::arg_ref ( unsigned  index)
inlineexplicit

Definition at line 1711 of file format.h.

template<typename Char>
internal::arg_ref< Char >::arg_ref ( basic_string_view< Char >  nm)
inlineexplicit

Definition at line 1712 of file format.h.

1712  : kind(NAME) {
1713  name = {nm.data(), nm.size()};
1714  }
FMT_CONSTEXPR size_t size() const
Definition: core.h:389
string_value< Char > name
Definition: format.h:1725
FMT_CONSTEXPR const Char * data() const
Definition: core.h:386

Member Function Documentation

template<typename Char>
FMT_CONSTEXPR arg_ref& internal::arg_ref< Char >::operator= ( unsigned  idx)
inline

Definition at line 1716 of file format.h.

1716  {
1717  kind = INDEX;
1718  index = idx;
1719  return *this;
1720  }
unsigned index
Definition: format.h:1724

Member Data Documentation

union { ... }
template<typename Char>
unsigned internal::arg_ref< Char >::index

Definition at line 1724 of file format.h.

template<typename Char>
Kind internal::arg_ref< Char >::kind

Definition at line 1722 of file format.h.

template<typename Char>
string_value<Char> internal::arg_ref< Char >::name

Definition at line 1725 of file format.h.


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