20#ifndef PALUDIS_GUARD_PALUDIS_STREAM_HOLDER_HH
21#define PALUDIS_GUARD_PALUDIS_STREAM_HOLDER_HH 1
33 template <
typename Stream_>
38 typedef std::basic_ostream<typename Stream_::char_type, typename Stream_::traits_type> ostream_type;
39 typedef std::basic_ios<typename Stream_::char_type, typename Stream_::traits_type> ios_type;
45 template<
typename... Args_>
46 StreamHolder(Args_ && ...
args) : s(std::forward<Args_>(
args)...)
55 template <
typename T_>
56 StreamHolder<Stream_>& operator<<(T_ && rhs)
58 s << std::forward<T_>(rhs);
67 ostream_type&
operator<<(ostream_type& (*rhs)(ostream_type&))
88 ostream_type&
operator<<(std::ios_base& (*rhs)(std::ios_base&))
99 bool operator!()
const
104 operator bool()
const
ostream_type & operator<<(ostream_type &(*rhs)(ostream_type &))
Definition stream_holder.hh:67
ostream_type & operator<<(ios_type &(*rhs)(ios_type &))
Definition stream_holder.hh:77
ostream_type & operator<<(std::ios_base &(*rhs)(std::ios_base &))
Definition stream_holder.hh:88
#define PALUDIS_VISIBLE
Definition attributes.hh:59
Definition args_dumper.hh:39
Definition about_metadata-fwd.hh:24