OpenVPN 3 Core Library
Loading...
Searching...
No Matches
format.hpp File Reference
#include <cstddef>
#include <string>
#include <sstream>
#include <ostream>
#include <type_traits>
#include <utility>
#include <openvpn/common/platform.hpp>
#include <openvpn/common/to_string.hpp>
Include dependency graph for format.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openvpn::print_formatted_detail::Output< T >
 
class  openvpn::print_formatted_detail::Output< std::string >
 
class  openvpn::print_formatted_detail::Output< std::ostringstream >
 
class  openvpn::PrintFormatted< OUTPUT >
 

Namespaces

namespace  openvpn
 
namespace  openvpn::print_detail
 
namespace  openvpn::print_formatted_detail
 

Macros

#define OPENVPN_FMT(...)   OPENVPN_LOG_STRING(printfmt(__VA_ARGS__))
 
#define OPENVPN_THROW_FMT(EXC, ...)   throw EXC(printfmt(__VA_ARGS__))
 

Functions

template<typename T >
void openvpn::print_detail::print (std::ostream &os, char delim, const T &first)
 
template<typename T , typename... Args>
void openvpn::print_detail::print (std::ostream &os, char delim, const T &first, Args... args)
 
template<typename... Args>
std::string openvpn::printd (char delim, Args... args)
 
template<typename... Args>
std::string openvpn::print (Args... args)
 
template<typename... Args>
std::string openvpn::prints (Args... args)
 
template<typename... Args>
std::string openvpn::printfmt (const std::string &fmt, Args... args)
 

Macro Definition Documentation

◆ OPENVPN_FMT

#define OPENVPN_FMT (   ...)    OPENVPN_LOG_STRING(printfmt(__VA_ARGS__))

Definition at line 326 of file format.hpp.

◆ OPENVPN_THROW_FMT

#define OPENVPN_THROW_FMT (   EXC,
  ... 
)    throw EXC(printfmt(__VA_ARGS__))

Definition at line 329 of file format.hpp.