libzypp 17.38.6
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::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

namespace  zyppng
namespace  zyppng::log
namespace  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.
template<typename T>
auto zyppng::log::view (const T &obj)
 Unified format call: Context-Independent.
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 & >