libzypp  17.38.7
format.h File Reference
#include <ostream>
#include <sstream>
#include <type_traits>
#include <zypp-core/ng/base/zyppglobal.h>
#include <zypp-core/ng/meta/type_traits.h>
Include dependency graph for format.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  zyppng::log::formatter< T, Enable >
 Primary trait for object formatting. More...
 
struct  zyppng::log::detail::view_proxy< T >
 Temporary object for streaming, we prefer direct streaming so we have string allocations only when needed. More...
 
struct  zyppng::log::detail::ctx_bound_view_proxy< T >
 Temporary object for streaming, we prefer direct streaming so we have string allocations only when needed. More...
 
struct  zyppng::log::detail::has_view_proxy< T, typename >
 Detection trait for StaticFormatter implementation. More...
 
struct  zyppng::log::detail::has_view_proxy< T, std::void_t< decltype(formatter< T >::stream(std::declval< std::ostream & >(), std::declval< const T & >()))> >
 

Namespaces

 zyppng
 
 zyppng::log
 
 zyppng::log::detail
 

Functions

 zyppng::ZYPP_FWD_DECL_TYPE_WITH_REFS (Context)
 
template<typename T >
auto zyppng::log::view (const ContextRef &ctx, const T &obj)
 Unified format call: Context-Aware. More...
 
template<typename T >
auto zyppng::log::view (const T &obj)
 Unified format call: Context-Independent. More...
 
template<typename T >
auto zyppng::operator<< (std::ostream &os, const T &obj) -> std::enable_if_t< log::detail::has_view_proxy< T >::value, std::ostream &>